HP 4155A/4156A SCPI Programming
Programming: Print/Plot Operation
Example 2.
From built-in IBASIC:
10 ASSIGN @Hp4155 TO 800
20 !
30 OUTPUT @Hp4155;"*RST"
40 !
50 OUTPUT @Hp4155;":MMEM:LOAD:STAT 0,'SWP.MES'"
60 !
70 OUTPUT @Hp4155;":PAGE:SCON:SING"
80 OUTPUT @Hp4155;"*OPC?"
90 ENTER @Hp4155;Complete
100 !
110 OUTPUT @Hp4155;":DISP:ALL INST"
120 OUTPUT @Hp4155;":PAGE:GLIS"
130 !
140 OUTPUT @Hp4155;":HCOP:SDUM"
150 OUTPUT @Hp4155;"*OPC?"
160 ENTER @Hp4155;Complete
170 END
Line Number Description
10 Assigns I/O path to control HP 4155A/4156A from built-in IBASIC
.
30 Resets HP 4155A/4156A.
50 Loads measurement setup data from diskette le
SWP.MES
.
70 to 90 Executes measurement and waits until completion.
110 to 120 Displays GRAPH/LIST: GRAPHICS page.
140 to 160 Starts printing and waits until completion.
4-45