Hp Basic / Hp-Ib Program Example 3 - 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 3

This program example demonstrates the use of an SRQ to indicate when
measurements are complete. The meter is set to use external triggering.
Math scaling is also demonstrated.
10
!
20
! This program configures the meter to make multiple dc voltage measurements
30
! using an external trigger. The "Operation Complete" bit in the Standard
40
! Event Register is used to determine when the trigger is received and
50
! generates an SRQ. This program also shows the use of math scaling.
60
!
70
INTEGER Value,Task
80
CLEAR 7
90
ASSIGN @Meter TO 722
100
COM @Meter
110
OUTPUT @Meter;"*RST"
120
OUTPUT @Meter;"*CLS"
130
OUTPUT @Meter;"*OPC?"
140
ENTER @Meter;Value
150 !
160 ! Configure the Status Register system to generate an SRQ when the
170 ! "Operation Complete" bit is set in the Standard Event Register
180 !
190
OUTPUT @Meter;"*SRE 32"
200
210
OUTPUT @Meter;"*ESE 1"
220
218
GPIB
! Dimension variables
! Clear interface - send "device clear"
! Assign I/O path to address 722
! Use same address in subprogram
! Reset the meter
! Clear status registers
! Send "1" to output buffer when reset complete
! Enter value
! Enable "Standard Event" bit in Status Byte
! to pull the IEEE-488 SRQ line
! Enable "Operation Complete" to set
! "Standard Event" bit in Status Byte

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents