Agilent Technologies E1326B Uživatelský manuál Strana 223

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 291
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 222
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,Base_addr+2)
140 Hex$=IVAL$(Register,16)
150 PRINT Hex$
160 SUBEND
224 HP E1326B/E1411B Multimeter Register-Based Programming Appendix C
Zobrazit stránku 222
1 2 ... 218 219 220 221 222 223 224 225 226 227 228 ... 290 291

Komentáře k této Příručce

Žádné komentáře