5-288 Agilent 4155C/4156C SCPI Command Reference, Edition 1
SCPI Commands
:PROG[:SELected]:STRing
:PROG[:SELected]:STRing
This command is used to set or query the contents of string variables and arrays in
the downloaded program.
The specified variable must be an existing variable in the downloaded program.
Syntax :PROG [ :SELected ] :STRing varname { , string }
Parameter
When varname is string array, strings are set from the first element of the array. If
the number of string is less than number of array elements, the leftover elements are
not changed. If the number of string is greater than number of array elements, extra
strings are ignored.
Query response string { , string } <newline><^END>
string is string response data type.
Example OUTPUT @Hp4155;":PROG:STR Ab,'Voltage'"
OUTPUT @Hp4155;":PROG:STR 'Ab','Voltage','Current'"
OUTPUT @Hp4155;":PROG:STR? A"
ENTER @Hp4155;B$
:PROG[:SELected]:WAIT
This command stops the execution of commands or queries until the downloaded
program exits from the RUN state (that is, until program is STOPped or PAUSed).
Syntax :PROG [ :SELected ] :WAIT
Query response 1 <newline><^END>
A 1 is returned if the program is either STOPped or PAUSed.
Example OUTPUT @Hp4155;":PROG:WAIT"
OUTPUT @Hp4155;":PROG:WAIT?"
ENTER @Hp4155;A
Parameter Type Explanation
varname string or character name of the string variable or array
string string string to set for specified variable