Getting Started on Programming the HP 4155A/4156A
Creating a Simple Measurement Program
4. Press IBASIC
4
Display
5
key until screen display mode is All IBASIC mode.
Then, do the following to insert the program lines for changing the X-axis
display parameters:
a. Move the cursor to the program line 40.
b.
Select
N
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Insert line
primary softkey.
c.
Select the
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
OUTPUT @Hp415x
softkey.
d. Type in the SCPI command. Or you can use the help function to enter
the command. For the help function, see \To Use the Help Function"in
Chapter 1. After you nish, the program lines should look as follows:
33 OUTPUT @Hp415x;":PAGE:DISP:SET:GRAP:X:MIN",Start_v
34 OUTPUT @Hp415x;":PAGE:DISP:SET:GRAP:X:MAX",Stop_v
Now the program is as follows:
10 COM @Hp415x
20 ASSIGN @Hp415x TO 800
21 !
22 INPUT "Sweep Start (V)?",Start_v
23 INPUT "Sweep Stop (V)?",Stop_v
24 !
30 OUTPUT @Hp415x;":MMEM:LOAD:STAT 0,'VTH.MES','DISK'"
31 OUTPUT @Hp415x;":PAGE:MEAS:SWE:VAR1:STAR",Start_v
32 OUTPUT @Hp415x;":PAGE:MEAS:SWE:VAR1:STOP",Stop_v
33 OUTPUT @Hp415x;":PAGE:DISP:SET:GRAP:X:MIN",Start_v
34 OUTPUT @Hp415x;":PAGE:DISP:SET:GRAP:X:MAX",Stop_v
40 OUTPUT @Hp415x;":PAGE:SCON:MEAS:SING"
9990 END
5.
Select
N
NNNNNNNNNNNNNNNNNNNNNNNNN
End edit
to exit from the editor.
6. Press IBASIC
4
Display
5
key until screen mode is IBASIC Status mode.
7. Press
4
Run
5
to execute the program.
8. Enter the desired sweep start and stop values as prompted. The minimum
and maximum X-axis values of the graph will be the same as these entered
values.
3-11