HP BASIC Language Programs
All of the HP BASIC examples in this chapter were developed and tested
on an HP 9000 Series 300 controller. Each device on the HP-IB
(IEEE-488) interface must have a unique address. You can set the
meter’s address to any value between 0 and 30. The current address is
momentarily displayed on the front panel when you turn on the meter.
The HP-IB (IEEE-488) address is set to "22" when the meter is shipped
from the factory. The examples in this chapter assume a HP-IB address
of 22. When sending a remote interface command, you append this
address to the HP-IB interface’s select code (normally 7). Therefore, with
an address of 22 and a select code of 7, the combination is "722".
HP BASIC / HP-IB Program Example 1
This example demonstrates the general sequence of programming and
the use of the MEASure? command to set and obtain a 4-wire Ohms
measurement.
10 !
20 ! This program configures the meter for a 4-wire ohms measurement on
30 ! Channel 1 using the MEAS command.
40 !
50 REAL Value,Rdg ! Dimension real variables
60 CLEAR 7 ! Clear interface - send "device clear"
70 ASSIGN @Meter TO 722 ! Assign I/O path to address 722
80 !
90 OUTPUT @Meter;"*RST" ! Reset the meter
100 OUTPUT @Meter;"*OPC?" ! Send "1" to output buffer when reset complete
110 ENTER @Meter;Value ! Enter value
120 !
130 ! Select 4-wire ohms on the 10 ohm range with the least resolution;
140 !
150 OUTPUT @Meter;"MEAS:FRES? 10,MAX"
160 ENTER @Meter;Rdg ! Enter reading
170 PRINT Rdg ! Print reading
180 END
6
Chapter 6 Application Programs
HP BASIC Language Programs
215
GPIB
GPIB
GPIB
GPIB
GPIB
Summary of Contents for 34420A
Page 1: ......
Page 2: ......
Page 13: ...1 Quick Start ...
Page 31: ...2 Front Panel Operation ...
Page 55: ...3 Features and Functions ...
Page 117: ...4 Remote Interface Reference ...
Page 200: ...5 Error Messages ...
Page 213: ...6 Application Programs ...
Page 245: ...6 Chapter 6 Application Programs Microsoft Excel Macro Example 245 ...
Page 246: ...Chapter 6 Application Programs Microsoft Excel Macro Example 246 ...
Page 247: ...7 Measurement Tutorial ...
Page 274: ...8 Specifications ...
Page 279: ...Dimensions Chapter 8 Specifications 34420A Nano Volt Micro Ohm Meter 280 ...
Page 294: ......