4- 78 Keysight B2961A/B2962A SCPI Command Reference, Edition 6
Subsystem Commands
PROGram Subsystem
:PROGram[:SELected]:NAME
Selects the program for performing the action by the following commands.
If name does not specify the program stored in the program memory, this command
creates a new program with the specified name and selects the program.
If name specifies an existing program, this command selects the program.
Syntax :PROGram[:SELected]:NAME name
:PROGram[:SELected]:NAME?
Parameter name Program name. Up to 32 ASCII characters without any control
characters, space characters, single and double quotes, and
comma. Parameter data type is SPD.
Query response name <newline>
name returns the name of the program currently selected. Response data type is
SRD.
Example :PROG:NAME “program1”
:PROG:SEL:NAME?
:PROGram[:SELected]:STATe
Changes the execution status of a program stored in the program memory.
Before executing this command, the program must be selected by the
:PROGram[:SELected]:NAME command. Or else, an error occurs.
Syntax :PROGram[:SELected]:STATe operation
:PROGram[:SELected]:STATe?
Parameter operation RUN|PAUSe|STEP|STOP|CONTinue. Parameter data type is
CPD. See
Table 4-3 for the status changed by this command.
Query response status <newline>
status returns the present execution status, Running, Paused, or Stopped. Response
data type is CRD.
Example :PROG:STAT PAUS