/* 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 *)(bas 0x08),4);
/* write ’OHMS’ to parameter register, wait for ready bit = 1 */
while (!READY);
iwpoke((unsigned short *)(bas 0x0A),2);
while (!DONE);
/* write ’measurement function query’ to command register, wait for */
/* qryrdy bit = 1 */
iwpoke((unsigned short *)(bas 0x08),5);
while (!QRYRDY);
query = iwpeek((unsigned short *)(bas 0x08));
printf("Query register contents = %x", (query & 0xFF));
}
Appendix C
HP E1326B/E1411B Multimeter Register-Based Programming 229
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com