HP E1418A Service Manual page 41

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

Advertisement

/*** Routine to perform the short circuit output current performance test ***/
void maxcurrent_check ()
{
float v_out = {16}; /*voltage to output*/
int i,opc_check;
char function [6] = {"CURR:DC\0"},range [6] = {"0.100\0"};
dmm_setup (function,range);
printf ("\n\nShort Circuit Output 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 the DMM current input terminals\n");
printf ("2.\tThe DMM is set to make DC current Measurements on \n");
printf ("\tthe 100 mA range.\n");
printf ("3.\tEach channel is set to output 16 V\n");
printf ("\t\tMeasure the current flowing through the DMM.\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);
if(err VI_SUCCESS) err_handler(dac, err);
maxcurrent_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 ("End of Short Circuit Output Current Test");
err=viPrintf(dac, "*RST\n");
if(err VI_SUCCESS) err_handler(dac, err);
}
/*** End of maxcurrent_check ***/
Chapter 4
/* SCPI error check */
/* enter OPC integer */
*/
/* enter OPC integer */
Verification Tests 41]

Advertisement

Table of Contents
loading

Table of Contents