Getting Started on Programming the HP 4155A/4156A
Creating a Simple Measurement Program
Step 5. Printing the Measurement Results
Printing from IBASIC
If you use built-in IBASIC controller to control HP 4155A/4156A, you do not need to prepare before
controlling HP 4155A/4156A because built-in IBASIC controller is always connected to HP 4155A/4156A
via internal HP-IB.
However,
to print/plot
from built-in IBASIC controller, set \
HP 4155A/56A is
" îeld on the
SYSTEM: MISCELLANEOUS page to SYSTEM CONTROLLER.
In this step, add program lines that print the measurement results
.
1. Press
4
Display
5
key until screen display mode is All IBASIC mode.
2.
Select
NNNNNNNNNNNNNN
EDIT
softkey, then press
4
Enter
5
key to start the IBASIC editor
3. Move the cursor to the program line 70.
4.
Select
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Insert line
primary softkey.
5. Insert the following program lines, which print a screen dump of the
results:
61 OUTPUT @Hp415x;":HCOP:SDUM"
62 DISP "Printing"
63 OUTPUT @Hp415x;"*OPC?"
64 ENTER @Hp415x;Complete
65 DISP "Done"
:HCOP
immediately initiates the plot or print according to the current
setup. After printing is înished, HP 4155A/56A returns
1
to the
Complete
variable, then \Done" is displayed on the screen.
Now the program is as follows:
3-14