Getting Started on Programming the HP 4155A/4156A
Creating a Simple Measurement Program
Line number Description
10 Declares COM so that subprograms can access the I/O path (that is assigned in line 20) for
controlling the HP 4155A/56A. Refer to the
HP Instrument BASIC Users Handbook
for details.
20 Assigns the I/O path for controlling the HP 4155A/56A .
800
means built-in IBASIC
controller.
To ASSIGN I/O path
Built-in IBASIC controller
Specify select code 8. For the HP-IB address, you can use
any
number between 0 to 31. Refer to
the following example:
10 ASSIGN @Hp4155 TO 800
HP BASIC on an external computer
Specify the select code of the external computer. And specify the HP-IB address that you entered
into the HP-IB ADDRESS eld on the SYSTEM: MISCELLANEOUS page
. In the following example,
the select code of the external computer is 7 and HP-IB address of HP 4155A/56A is 17:
10 ASSIGN @Hp4155 TO 717
5. Select
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
OUTPUT @Hp415x
secondary softkey.
The following characters are automatically entered:
30 OUTPUT @Hp415x;" "
Do not press
4
Enter
5
yet.
6. Use the help function to nd the command for getting a setup le:
a. Press
4
Help
5
.
b. Press
4
Get
5
.
3-5