HP 4155A/4156A SCPI Programming
Programming: Print/Plot Operation
To Dump Screen Image to Printer/Plotter
1. Display the page to be dumped.
2. Execute print/plot by using :HCOPy:SDUMp command.
If you print/plot from an external computer, pass Active Controller
capability to HP 4155A/4156A after sending
:HCOPy:SDUMp
command
because HP 4155A/4156A requires Active Controller capability to print.
Refer to the following example.
Example
The following two examples load a sweep setup le
, execute measurement,
display GRAPH/LIST: GRAPHICS page, then dump screen image of
GRAPH/LIST: GRAPHICS page to printer/plotter:
Example 1.
From an external computer:
10 ASSIGN @Hp4155 TO 717
20 CONTROL 7,3;21
30 !
40 OUTPUT @Hp4155;"*RST"
50 OUTPUT @Hp4155;"*PCB 21"
60 !
70 OUTPUT @Hp4155;":MMEM:LOAD:STAT 0,'SWP.MES'"
80 !
90 OUTPUT @Hp4155;":PAGE:SCON:SING"
100 OUTPUT @Hp4155;"*OPC?"
110 ENTER @Hp4155;Complete
120 !
130 OUTPUT @Hp4155;":HCOP:DEST RDEV"
140 !
150 OUTPUT @Hp4155;":PAGE:GLIS"
160 !
170 OUTPUT @Hp4155;":HCOP:SDUM"
180 REPEAT
190 OUTPUT @Hp4155;"*ESR?"
200 ENTER @Hp4155;Event_status
210 UNTIL BIT(Event_status,1)
220 !
230 PASS CONTROL @Hp4155
240 DISP "Printing"
250 REPEAT
260 STATUS 7,6;Hpib_status
4-43