Chapter 6 Applicationprograms; Hp Basic Language Programs; Hp Basic / Hp-Ib Program Example 1 - Agilent Technologies 34420A User Manual

Nano volt/micro ohm meter
Table of Contents

Advertisement

Chapter 6 Application Programs

HP BASIC Language Programs

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
60
CLEAR 7
70
ASSIGN @Meter TO 722
80
!
90
OUTPUT @Meter;"*RST"
100
OUTPUT @Meter;"*OPC?"
110
ENTER @Meter;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
170
PRINT Rdg
180
END
GPIB
GPIB
GPIB
! Dimension real variables
! Clear interface - send "device clear"
! Assign I/O path to address 722
! Reset the meter
! Send "1" to output buffer when reset complete
! Enter value
! Enter reading
! Print reading
GPIB
GPIB
6
215

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents