After sending the SAVE:IMAGe command, send the *OPC? query command and wait for the response. On the 4, 5, 6 Series MSO oscilloscopes the SAVE:IMAGE command is an OPC generating command therefore the *OPC? query command can be used to synchronize your program with the completion of the save operation. The reason for this is that you did not wait long enough after sending SAVE:IMAGe before sending FILESystem:READFile. If you send the SAVE:IMAGE command and then immediately send the FILESystem:READFile command, it is likely that you will get a timeout error or possibly a partial image when trying to read back the image data. Avoiding Errors When Trying to Readback Image Data When the instrument encounters this command, the entire line is ignored by the command parser. Note: The REM command means remark and can be used for adding commands to command listings or. REM Read back the data sent from the instrument and write the data (un-altered) it to a. ![]() Wait for instrument to finish writing the screenshot to disk by querying *OPC? REM SAVE:IMAGE is an OPC generating command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |