Agilent Technologies E1326B Manuel d'utilisateur Page 222

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 291
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 221
Reading the ID
Register
As mentioned previously, the ID Register indicates the classification,
addressing mode, and manufacturer of the device. This program reads the
ID Register and returns FFFF
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 ID register.
70 CALL Id_read
80 END
90 !
This subprogram reads the ID register and displays the result in hexadecimal.
100 SUB Id_read
110 COM Base_addr
120 Register=READIO(-16,Base_addr+0)
130 Hex$=IVAL$(Register,16)
140 PRINT Hex$
150 SUBEND
Appendix C HP E1326B/E1411B Multimeter Register-Based Programming 223
Vue de la page 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 290 291

Commentaires sur ces manuels

Pas de commentaire