Syntax
Query response
Example
Syntax
Parameter
Query response
Example
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".
:PROGram:CATalog?
"PROG" <newline><^END>
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.
:PROGram [ :SELected ] :DEFine program
Parameter
Type
program
arbitrary
block
program <newline><^END>
program is uploaded as definite length arbitrary block response data.
!Indefinite length example
OUTPUT @Hp4155;":PROG:DEF #0"
OUTPUT @Hp4155;"10 PRINT ""HELLO!"""
OUTPUT @Hp4155;"20 END"
OUTPUT @Hp4155;" " END
!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$
5-284
Agilent 4155C/4156C SCPI Command Reference, Edition 1
Explanation
block data of a program
!Terminator