/* Download FET multiplexer scan list */
set_scanlist(base_addr_fet);
/* trigger the multimeter */
trigger_dmm(base_addr_dmm);
/* close the device sessions */
iclose(e1411b);
iclose(e1351a);
}
/
*******************************************************
/
void configure_dmm(char *base_addr_dmm, int command, int parameter)
{
/* this function sets the multimeter measurement function, range, aperture */
/* time, autozero mode, offset compensation mode, trigger source, sample */
/* source, and trigger arm */
/* write command to command register */
/* wait for mm ready bit = 1 */
while(!READY);
iwpoke((unsigned short *)(base_ad 0x08),command);
/* write parameter to parameter register */
/* wait for mm ready bit = 1 */
while (!READY);
iwpoke((unsigned short *)(base_ad 0x0A),parameter);
/* save aperture time, range, and function for reading conversion */
if (command == 0)
aper = parameter;
else if (command == 2)
rng = parameter;
else if (command == 4)
func = parameter;
while(!DONE); /* wait until mm is done before sending the */
/* next command and parameters */
if(!NOERR) check_for_error(base_addr_dmm);
/* check for configuration errors */
}
Continued on Next Page
Appendix C
HP E1326B/E1411B Multimeter Register-Based Programming 255
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com