User`s manual

/* 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