Agilent Technologies 34420A User Manual page 219

Nano volt/micro ohm meter
Table of Contents

Advertisement

Chapter 6 Application Programs
HP BASIC Language Programs
... continued
230 !
240 ! Configure the GPIB interrupt system to generate an SRQ
250 !
260
Hpib=7
270
ON INTR Hpib CALL Read_data
280
Mask=2
290
ENABLE INTR Hpib;Mask
300 !
310
OUTPUT @Meter;"SENS:FUNC 'VOLT:DC'"
320
OUTPUT @Meter;"SENS:VOLT:DC:RANG 10" ! Select 10 volt range
330
OUTPUT @Meter;"SENS:VOLT:DC:NPLC 10" ! Select 10 power line cycles
340
OUTPUT @Meter;"CALC:FUNC SCAL"
350
OUTPUT @Meter;"CALC:STAT ON"
360
OUTPUT @Meter;"CALC:SCAL:GAIN 0.001" ! Set the gain value (1 mV)
370
OUTPUT @Meter;"CALC:SCAL:OFFS 0.5"
380 !
390
OUTPUT @Meter;"SAMP:COUN 5"
400
OUTPUT @Meter;"TRIG:SOUR EXT"
410
OUTPUT @Meter;"INIT"
420
430
OUTPUT @Meter;"*OPC"
440
! HP-IB select code is "7"
! Call subprogram when operation complete
! Bit 1 is SRQ
! Enable SRQ to interrupt program
! Select dc volts on channel 1 (default)
! Select math scaling function
! Turn math scaling on
! Set the offset value (50 mV)
! Take 5 reading per trigger
! Select external trigger source
! Initiate measurement, wait for trigger,
! and send readings to internal memory
! Set "Operation Complete" bit in
! Standard Event Register when complete
6
219

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents