Scanning
Multimeter
Measurements
The following program makes measurements using the multimeter and the
HP E1460A 64-Channel Relay Module. The configuration makes one scan
through eight channels, and takes one measurement on each channel.
HP BASIC/WS Version
10
!
Initialize program variables.
20
CONTROL 16,25;2
30
Base_addr=DVAL("C600",16) !
logical address 24
40
Base_addrm=DVAL("C640",16) !
logical address 25
50
I=0
60
Aper=0
70
Func=0
80
Rng=0
90
!
Number of channels being measured.
100
Nchan=8
110
COM I,Base_addr,Base_addrm,Aper,Func,Rng,Nchan,Chan_closed
120
!
Initialize (reset) the multimeter.
130
CALL Mm_reset
140
!
Open all multiplexer channels.
150
CALL Mux_reset
160 !
Configure the multimeter’s A/D converter.
170
!
Set the function
(DCV)
180
CALL Peek_meas(4,0)
190
!
Set the range(Autorange)
200
CALL Peek_meas(2,5)
210
!
Set the aperture time
(16.7 ms)
220
CALL Peek_meas(0,1)
230
!
Set the autozero mode - to detect bit 5
(ON)
240
CALL Peek_meas(8,0)
250
!
Set the offset compensation mode(OFF)
260
CALL Peek_meas(36,0)
270
!
Configure multimeter trigger system
280
!
Set the trigger source
(HOLD)
290
CALL Peek_meas(6,2)
300
!
Set the trigger count (number of channels to scan)
(8)
310
CALL Peek_meas(39,0,0,8)
320
!
Set the trigger delay(0s)
330
CALL Peek_meas(23,0,0,0)
340
!
Set the readings per trigger (per channel)
(1)
350
CALL Peek_meas(38,0,0,1)
Continued on Next Page
246 HP E1326B/E1411B Multimeter Register-Based Programming
Appendix C
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com