Technical data
4-124 Agilent B1500A/B1505A Programming Guide, Edition 11
Command Reference
LST?
LST? 
The LST? query command stores a catalog of internal memory programs or a 
specific program listing in the output data buffer (query buffer) of the B1500.
Syntax  LST? [pnum[,index[,size
]]]
Parameters  pnum :  Memory program number. Numeric expression. 0 to 2000. If you do not 
specify the value, 0 is set.
LST? 0 returns the catalog of the memory programs. This is same as the 
LST? command results. Then index and size are not required.
index :  Command index that is the number of top command to read. Numeric 
expression. If you do not specify the value, 1 is set.
index=1 specifies the first command stored in the memory program. 
This command is always the ST command. And the last command is 
always the END command. If the index value is greater than the 
number of commands, the LST? returns the END only.
If you set index=0, the LST? returns the number of commands stored in 
the memory program. For empty memory programs, the LST? returns 2 
(ST and END).
size :  Number of commands to read. Numeric expression. 1 to 3000. If you 
do not specify the value, 3000 is set.
If you set the value greater than the number of commands from the 
command specified by index to the last command (END), the LST? 
command stops operation after reading the END command.
Query Response  Response by LST? or LST? 0:
number_of_programs[,pnum[,pnum ... [,pnum]...]]<CR/LF^EO
I>
Response by LST? pnum[, index[, size]]:
ST pnum<CR/LF>
[saved_command<CR/LF>]
[saved_command<CR/LF>]
:
[saved_command<CR/LF>]
END<CR/LF^EOI>
The LST? command reads the command specified by the index, reads the command 
stored next, and repeats this operation until the size each of commands are read. If 
you do not specify the index and size values, the LST? command reads the first 










