Agilent Technologies E1326B Bedienungsanleitung Seite 228

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 291
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 227
/* this function sets the multimeter function to ohms */
unsigned short query; /* variable for data from query response reg */
/* write ’measurement function’ to command register, wait for */
/* ready bit = 1 */
while(!READY);
iwpoke((unsigned short *)(base_addr + 0x08),4);
/* write ’OHMS’ to parameter register, wait for ready bit = 1 */
while (!READY);
iwpoke((unsigned short *)(base_addr + 0x0A),2);
while (!DONE);
/* write ’measurement function query’ to command register, wait for */
/* qryrdy bit = 1 */
iwpoke((unsigned short *)(base_addr + 0x08),5);
while (!QRYRDY);
query = iwpeek((unsigned short *)(base_addr + 0x08));
printf("Query register contents = %x", (query & 0xFF));
}
Appendix C HP E1326B/E1411B Multimeter Register-Based Programming 229
Seitenansicht 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 290 291

Kommentare zu diesen Handbüchern

Keine Kommentare