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','DISK'"
60 OUTPUT @Hp4155;":HCOP:ITEM:PNUM:STAT OFF"
70 OUTPUT @Hp4155;":HCOP:ITEM:LAB:TEXT 'This is an example'"
80 OUTPUT @Hp4155;":HCOP:DEST RDEV"
90 OUTPUT @Hp4155;":HCOP:OPAG CURR"
100 !
110 OUTPUT @hp4155;":DISP:ALL INST"
110 OUTPUT @Hp4155;":PAGE:MEAS"
120 !
130 OUTPUT @Hp4155;":HCOP"
140 DISP "Printing"
150 OUTPUT @Hp4155;"*OPC?"
160 ENTER @Hp4155;Complete
170 DISP "Done"
180 !
190 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
.
60 Species to not print the page number.
70 Denes a print/plot comment.
80 Selects HP-IB interface. If serial interface, change the parameter to ''SER''.
90 to 110 Species to print/plot the setup data of the MEASURE: SWEEP SETUP
page.
130 Starts printing.
150 and 160 Waits until printing is complete.
4-36