How do I save and transfer a screenshot from the 4, 5 or 6 Series MSO oscilloscope to my PC via the remote command interface?
Screenshots (also known as hard copies) can be transferred from the Series 4, 5 and 6 MSO oscilloscopes via the remote programming interface using just a few simple commands. For information on how to send commands to the instrument via the remote programming interface, please see the 4, 5, 6 Series MSO Programmer’s Manual.
To save and transfer a screenshot, send the following commands to the instrument:
Note: The REM command means remark and can be used for adding commands to command listings or .set files. When the instrument encounters this command, the entire line is ignored by the command parser.
Avoiding Errors When Trying to Readback Image Data
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. The reason for this is that you did not wait long enough after sending SAVE:IMAGe before sending FILESystem:READFile. 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. After sending the SAVE:IMAGe command, send the *OPC? query command and wait for the response. After you readback ‘1’ from the *OPC? query you can send the FILESystem:READFile command and readback the image data.
Python Example Code
FAQ ID 245436모든 FAQ 보기 »