Hp Basic / Hp-Ib Program Example 2 - Agilent Technologies 34420A User Manual

Nano volt/micro ohm meter
Table of Contents

Advertisement

Chapter 6 Application Programs
HP BASIC Language Programs

HP BASIC / HP-IB Program Example 2

This program example demonstrates how two input channels can be
independently configured and used.
10
!
20
! This program configures the meter for voltage measurements on two
30
! input channels. The channels are set to different ranges and
40
! resolutions to show the independence of the settings for each channel.
50
!
60
REAL Rdg_ch1,Rdg_ch2,Null_ch1,Null_ch2
70
CLEAR 7
80
ASSIGN @Meter TO 722
90
OUTPUT @Meter;"*RST"
100
OUTPUT @Meter;"*OPC?"
110
ENTER @Meter;Value
120 !
130 ! Configure channel 1 for dc volts, 1 volt range with 10 mV resolution
140 ! Configure channel 2 for dc volts, 1 mV range with least resolution
150
OUTPUT @Meter;"CONF:VOLT:DC 1,0.01,(@FRON1);:CONF:VOLT:DC 0.001,MAX,(@FRON2)"
160 !
170
OUTPUT @Meter;"ROUT:TERM FRON1"
180
OUTPUT @Meter;"READ?"
190
ENTER @Meter;Rdg_ch1
200
!
210
OUTPUT @Meter;"SENS1:VOLT:DC:NULL ON"
220
OUTPUT @Meter;"SENS1:VOLT:DC:NULL:VAL ";Rdg_ch1
230 !
240
OUTPUT @Meter;"READ?"
250
ENTER @Meter;Null_ch1
216
GPIB
! Clear interface - send "device clear"
! Assign I/O path to address 722
! Reset the meter
! Send "1" to output buffer when complete
! Enter value
! Select channel 1
! Take reading; send to output buffer
! Enter reading
! Take nulled reading; send to output buffer
! Enter nulled reading
! Dimension variables
! Enable null on channel 1
! Store value in register

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents