5-284 Agilent 4155C/4156C SCPI Command Reference, Edition 1
SCPI Commands
:PROGram:CATalog?
:PROGram:CATalog?
For the 4155C/4156C, only one program can be downloaded. So, the response of
this command is always "PROG".
Syntax :PROGram:CATalog?
Query response "PROG" <newline><^END>
Example OUTPUT @Hp4155;":PROG:CAT?"
ENTER @Hp4155;A$
:PROGram[:SELected]:DEFine
This command is used to create and download a program.
The query form of this command is used to upload a program.
Syntax :PROGram [ :SELected ] :DEFine program
Parameter
Query response program <newline><^END>
program is uploaded as definite length arbitrary block response data.
Example !Indefinite length example
OUTPUT @Hp4155;":PROG:DEF #0"
OUTPUT @Hp4155;"10 PRINT ""HELLO!"""
OUTPUT @Hp4155;"20 END"
OUTPUT @Hp4155;" " END !Terminator
!Query example
DIM A$[100000]
OUTPUT @Hp4155;":PROG:DEF?"
ENTER @Hp4155 USING "%,2A";HEAD$
B=VAL(HEAD$[2])
FOR I=1 TO B
ENTER @Hp4155 USING "%,A";HEAD$
NEXT I
ENTER 717 USING "-K";A$
Parameter Type Explanation
program arbitrary
block
block data of a program