HP E1418A Service Manual page 40

8/16-channel d/a converter
Hide thumbs Also See for E1418A:
Table of Contents

Advertisement

/*** Routine to perform the compliance current performance test ***/
void compliance_check ()
{
float v_out = {12};
int i,opc_check;
char function [6] = {"VOLT:DC\0"},range [6] = {"100\0"};
dmm_setup (function,range);
printf ("\n\nCompliance Current Verification Test\n\n");
for (i = 0;i != num_chan;i++)
{
/** connection instructions **/
printf ("\tChannel %d\n",i+1);
printf ("1.\tMake a four-wire connection from channel %d \n",i+1);
printf ("\tto a 600 Ohm resistor.\n");
printf ("2.\tMake a two-wire connection from the DMM to\n");
printf ("\tthe 600 Ohm resistor.\n");
printf ("3.\tThe DMM is set to make DC Volts Measurements on \n");
printf ("\tthe 100 V range.\n");
printf ("4.\tEach channel is set to output 12 V\n");
printf ("\t\tMeasure the voltage drop across the resistor output.\n");
printf ("\n\n");
pause();
err=viPrintf(dac, "APPLY%d:VOLTAGE %f;*OPC?\n",i+1,v_out); /* voltage output */
if(err VI_SUCCESS) err_handler(dac, err);
err=viScanf(dac, "%d", &opc_check); /* enter OPC integer */
if(err VI_SUCCESS) err_handler(dac, err);
compliance_results [i] = dmm_measure();
err=viPrintf(dac, "OUTPUT%d OFF;*OPC?\n",i+1); /* Turn output off
if(err VI_SUCCESS) err_handler(dac, err);
err=viScanf(dac, "%d", &opc_check);
if(err VI_SUCCESS) err_handler(dac, err);
sys_err (dac);
}
printf ("\n\nend of Compliance Current Test\n\n");
err=viPrintf(dac, "*RST\n");
if(err VI_SUCCESS) err_handler(dac, err);
}
/*** End of compliance_check ***/
40 Verification Tests
/* Voltage to output */
/* SCPI error check */
/* reset the dac
*/
/* enter OPC integer */
*/
Chapter 4

Advertisement

Table of Contents
loading

Table of Contents