Posted Sun, 03 Mar 2024 18:15:19 GMT by Yadav, Yogesh
Hello

I am using pyvisa to do some measurements on the 2612B system. 
How do I reliably detect that the list sweep has finished execution on the instrument?
I tried *OPC? but it times out while waiting.
Posted Thu, 14 Mar 2024 15:04:43 GMT by C, Andrea
If the instrument is busy carrying out the sweep, then the VISA write of the "*OPC?" command is not processed until the sweep completes.  This is why the VISA read will timeout.

An alternate approach is to use VISA's ReadSTB() to obtain the value of the status byte or status.condition register.

I put an elaboration and Python sample in the attached document.

You must be signed in to post in this forum.