Hi,
I am using a Siglent SSA 3015X and my aim is to trigger a scan and then get some indication of the scan completing via SCPI commands. I am using Python PyVisa and want to know when the scan is complete so I can do something else in the python program.
A web search came up with the sequence (generic not specific to my device):
*CLS
*TRG
*OPC?
This sequence is supposed to clear any event or status registers, trigger a scan and the OPC command is supposed to return 1 when the previous command is complete. What actually happens is the scan starts but the scan takes 10 seconds or so and the OPC query times out.
Alternative option is:
*CLS
*OPC
*TRG
*ESR?
This sequence should clear status and event registers, trigger the scan and then polling the event status register to look for bit zero to be true. What actually happens is the scan is triggered but the *ESR? response is always zero. I thought it might have been my python program so I tried the commands in the web SCPI command terminal of the analyzer and the same thing happens.
What my question to the community is am I using the correct sequence of commands and if I am is the Siglent device not honoring them?
Thanks,
Ross