
332
S:\agilent\e8285\USRGUIDE\BOOK\CHAPTERS\ibasic.fb
Chapter 6, IBASIC Controller
PROGram Subsystem
:WAIT?
The :WAIT? query command stops the Test Set from executing any
commands or queries received through GPIB until after the IBASIC program exits
the RUN state, that is - the program is either PAUSED or STOPPED. A 1 is
returned in response to the :WAIT? query command when the IBASIC program is
either stopped or paused.
CAUTION:
When the :WAIT? query command is sent to the Test Set the program running on the external
controller will hang on the enter or input statement until the IBASIC program is either
STOPPED or PAUSED. This is due to the fact that the GPIB bus and the external controller will
be in a temporary holdoff state while waiting for the Test Set to put a 1 into the Output queue to
satisfy the :WAIT? query command.
Syntax
PROGram[:SELected]:WAIT?
Example
OUTPUT 714;"PROGram:SELected:WAIT?"
ENTER 714;Dummy
or
OUTPUT 714;"PROG:WAIT?"
ENTER 714;Dummy
Consider the following example where the user wishes to determine, from an
external controller, if the IBASIC program running on the Test Set has finished
executing. The example programs show how this might be accomplished with and
without using the :WAIT? query command.
Example BASIC program without using the :WAIT? query command
10 OUTPUT 714;"PROG:STAT RUN"
20 LOOP
30 OUTPUT 714;"PROG:STAT?"
40 ENTER 714;State$
50 EXIT IF State$="STOP" OR State$="PAUS"
60 END LOOP
70 DISP "IBASIC program not running."
80 END
Example BASIC program using the :WAIT? query command
10 OUTPUT 714;"PROG:STAT RUN"
20 OUTPUT 714;"PROG:WAIT?"
30 ENTER 714;Dummy !Program will hang here until IBASIC program stops
40 DISP "IBASIC program not running."
50 END
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание E8285A
Страница 18: ...Contents 17 Index Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 100: ...99 4 Status Reporting Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 268: ...267 6 IBASIC Controller Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 346: ...345 A Error Messages Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...