if(err VI_SUCCESS) err_handler(dac, err);
if (selftest != ’0’)
{
printf (“Self Test failed\n”);
printf (“The first error encountered was\n”);
printf (“Error number %d %s\n”,selftest,selftestresults);
printf (“This program will terminate\n”);
pause();
abort;
}
else
{
printf (“Self Test PASSED”);
}
}
/*** VTL Error handling function ***/
void err_handler (ViSession dac, ViStatus err)
{
char buf[1024]={0};
viStatusDesc(dac,err,buf);
printf(“VTL ERROR = %s\n”, buf);
return;
} /*End of VTL error handler */
/*** SCPI error checking and reporting function ***/
void sys_err(ViSession resource) /* Test for SCPI Errors */
{
char buf [1024] = {0};
int err_no;
err = viPrintf (resource, “SYST:ERR?\n”); /* Check for an error */
if (err < VI_SUCCESS) err_handler(resource,err); /* Check VTL errors */
err = viScanf (resource,"%d%t",&err_no,&buf);
if (err < VI_SUCCESS) err_handler(resource,err); /* Check VTL errors */
while (err_no != 0) /* Report all errors in error que */
{
printf (“\nCommand Error: %d,%s\n”,err_no,buf);
err = viPrintf (resource, “SYST:ERR?\n”);
if (err < VI_SUCCESS) err_handler(resource,err); /* Check VTL errors */
err = viScanf (resource,"%d%t",&err_no,&buf);
if (err < VI_SUCCESS) err_handler(resource,err); /* Check VTL errors */
}
flushall(); /* Clean out the buffers */
err = viFlush(resource,VI_READ_BUF);
if (err < VI_SUCCESS) err_handler (resource,err); /* Check VTL errors */
err = viFlush(resource,VI_WRITE_BUF);
if (err < VI_SUCCESS) err_handler (resource,err); /* Check VTL errors */
} /* End of checking for SCPI errors */
28 Operating Information
Chapter 3
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 ...