/*** channel current output adjustment ***/
for (i=1;i<n1;i++)
{
result = 0;
while (result != 1)
{
err=viPrintf(dac, “CAL%d:CONF:CURR? \n”,i); /* Configure for calibration */
if(err < VI_SUCCESS) err_handler(dac, err);
err=viScanf(dac, “%d”, &result); /* Enter integer returned */
/*, returns a 1 when ready to calibrate */
if(err < VI_SUCCESS) err_handler(dac, err);
}
result = 1;
while (result !=0 && result !=2)
{
meas_volt=get_voltage (); /* Get the voltage measurement */
err=viPrintf(dac, “CAL%d:VAL:CURR? %f\n”,i,meas_volt);
if(err < VI_SUCCESS) err_handler(dac, err);
err=viScanf(dac, “%d”, &result); /* Enter integer returned */
/* returns a 0 when calibration complete */
if(err < VI_SUCCESS) err_handler(dac, err);
if (result == 5) /* Calibration aborted */
{
printf (“Calibration for channel %d aborted\n\n”,i);
result = 0;
}
}
}
/*** STORE THE NEW CALIBRATION CONSTANTS ***/
err=viPrintf(dac, “CAL:STOR;*OPC?\n”); /* Store the new cal constants */
if(err < VI_SUCCESS) err_handler(dac, err);
err=(viScanf(dac,"%d",&result);
if(err < VI_SUCCESS) err_handler(dac, err);
sys_err(dac);
•
•
•
}
72 Adjustments
Chapter
5
Summary of Contents for E1418A
Page 4: ...Notes 4 HP E1418A 8 16 Channel D A Converter Service Manual Contents ...
Page 8: ...Notes 8 HP E1418A D A Converter Module Service Manual ...
Page 58: ...Notes 58 Verification Tests Chapter 4 ...
Page 66: ...Figure 5 5 Internal Resistor Adjustment Connections 66 Adjustments Chapter 5 ...
Page 81: ...Figure 6 1 8 Channel Disassembly Chapter 6 Service 81 ...
Page 82: ...Figure 6 2 16 Channel Disassembly 82 Service Chapter 6 ...
Page 84: ...Notes 84 Service Chapter 6 ...
Page 90: ...Figure 7 1 HP E1418A Replaceable Parts 90 Replaceable Parts Chapter 7 ...
Page 91: ...Figure 7 2 Common Terminal Module Replaceable Parts Chapter 7 Replaceable Parts 91 ...