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

  • 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 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
Zobrazit stránku 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 290 291

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

Žádné komentáře