3-14
Common Commands
*WAI (Wait-to-Continue)
The *TST? query causes the analyzer to perform a self-test, and places a response in the out-
put queue indicating whether or not the self-test completed without any detected errors. Use
the :SYSTem:ERRor command to check for errors. A zero indicates that the test passed and a
non-zero indicates the self-test failed. You must disconnect all front-panel inputs before send-
ing the *TST? query.
Returned Format <result><NL>
<result> is 0 for pass; non-zero for fail.
Example This example performs a self-test on the analyzer and places the results in the numeric vari-
able, Results. If a test fails, refer to the troubleshooting section of the service guide. The Self-
Test takes approximately 3 minutes to complete. When using timeouts in your program, 200
seconds duration is recommended.
10 OUTPUT 707;"*TST?"
*WAI (Wait-to-Continue)
Command *WAI
The *WAI command prevents the analyzer from executing any further commands or queries
until all currently executing commands are completed. See *OPC for alternate methods for
synchronization.
Example This example executes a single acquisition, and causes the instrument to wait until acquisi-
tion is complete before executing any additional commands.
10 OUTPUT 707;"SINGle;*WAI"