Reading the Device
Type Register
The Device Type Register contains the model code of the device. The
HP E1326B model code is FF40
16
and the HP E1411B model code is
FF38
16
.
HP BASIC/WS Version
10
!
Map the A16 address space in the HP V/382 and store the multimeter
20
!
base address in a variable.
30
CONTROL 16,25;2
40
COM Base_addr
50
Base_addr=DVAL("C600",16)
60
!
Call the subprogram which reads the Device Type register.
70
CALL Dt_read
80
END
90
!
This subprogram reads the Device type register and displays the result
100
!
in hexadecimal.
110
SUB Dt_read
120
COM Base_addr
130
Register=READIO(-16,Ba2)
140
Hex$=IVAL$(Register,16)
150
PRINT Hex$
160
SUBEND
224 HP E1326B/E1411B Multimeter Register-Based Programming
Appendix C
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com