FAQs from Rohde & Schwarz

Bode plot measurement - when is it finished

Question

I am doing bode plot measurements with remote commands.
The measurement is started with "BPL:STAT RUN".
How can I find out that the measurement has been finished? The query "*OPC?" returns "1" at once while the measurment is still running.

Answer

You can use the same command as a query.
With "BPL:STAT?" you get:
- "RUN" when the measurement is running
- "STOP" when it is finished

So the suggestion is to repeat the query in a loop until "STOP" comes back. Then you can query the measurment data.