User`s manual

280 Chapter 8
O:\Manuals\E6380A_Progguid\Book\Ibasic.fm
IBASIC Controller
PROGram Subsystem
:STATe RUN|PAUSe|STOP|CONTinue The STATe command is
used to set, from an external controller, the execution state of the
IBASIC program in the Test Set. Table 8-4 defines the effect of setting
the execution state of the IBASIC program to a desired state from each
of the possible current states.
The program execution states are defined as follows:
RUNNING, the program is currently executing.
PAUSED, the program has reached a break in execution but can be
continued.
STOPPED, program execution has been terminated.
Example 8-32 Syntax
PROGram[:SELected]:STATe RUN|PAUSe|STOP|CONTinue
Example 8-33 Example
OUTPUT 714;"PROGram:SELected:STATe RUN"
or
OUTPUT 714;"PROG:STAT RUN"
:STATe? The STATe? query command is used to query, from an
external controller, the current execution state of the IBASIC program
in the Test Set. The return data (RUN, STOP, or PAUS) is sent as a
series of ASCII characters.
The program execution states are defined as follows:
RUN, the program is currently executing.
PAUS, the program has reached a break in execution but can be
continued.
STOP, program execution has been terminated.
Table 8-4 Effect o f STATe Commands
Desired State of IBASIC
Program (STATe command
sent to Test Set)
Current State of IBASIC Program
RUNNING PAUSED STOPPED
RUN HP-IB Error: -221
Settings conflict
RUNNING RUNNING
CONT HP-IB Error: -221
Settings conflict
RUNNING HP-IB Error: -221
Settings conflict
PAUSE PAUSED PAUSED STOPPED
STOP STOPPED STOPPED STOPPED