Example
Statements
Command Reference
Command Reference
stored command (ST pnum) to the 3000th stored command. If the number of
commands are less than 3000, the LST? command reads the commands from ST to
END. See Example Statements that show an HP BASIC programming example.
Example of LST? :
DIM A$[100]
OUTPUT @E5270;"LST?"
ENTER @E5270;A$
PRINT A$
Example of LST? pnum[, index[, size]] :
DIM A$[100]
P_num=1
!
OUTPUT @E5270;"LST?";P_num,0
ENTER @E5270;Num_c
Num_l=Num_c/3000
!
IF Num_c>3000 THEN
C_index=1
FOR I=1 TO INT(Num_l)
OUTPUT @E5270;"LST?";P_num,C_index
FOR N=1 TO 3000
ENTER @E5270;A$
PRINT A$
C_index=C_index+1
NEXT N
NEXT I
OUTPUT @E5270;"LST?";P_num,C_index
LOOP
ENTER @E5270;A$
PRINT A$
EXIT IF A$="END"
END LOOP
ELSE
OUTPUT @E5270;"LST?";P_num
LOOP
ENTER @E5270;A$
PRINT A$
EXIT IF A$="END"
END LOOP
END IF
4- 78
Keysight E5260/E5270 Programming Guide, Edition 4