Agilent Technologies E1326B Instrukcja Użytkownika Strona 228

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 291
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 290 291

Komentarze do niniejszej Instrukcji

Brak uwag