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;":HCOP:LIND MAX"
120 !
130 OUTPUT @Hp4155;":DISP:ALL INST"
140 OUTPUT @Hp4155;":PAGE:GLIS:LIST"
150 !
160 OUTPUT @Hp4155;":HCOP"
170 DISP "Printing"
180 OUTPUT @Hp4155;"*OPC?"
190 ENTER @Hp4155;Complete
200 DISP "Done"
210 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 Sets the range of list results to be output.
130 to 140 Changes page to GRAPH/LIST: LIST page.
160 to 190 Starts printing and waits until completion.
4-42