VXI Programming Using the IEEE 1394 Serial Bus
53
Chapter 3
}
//**********************************************************
// error checking routine
void check (ViSession vi, ViStatus errStatus)
{
ViInt32 inst_err;
ViChar err_message[256];
if(VI_SUCCESS > errStatus)
{
if(INSTR_ERROR == errStatus)
{
// query instrument error
hpe1410_dcl(vi);// send a device clear
hpe1410_error_query(vi, &inst_err, err_message);
// display the error
printf("Instrument Error : %ld, %s\n", inst_err, err_message);
}
else
{
// get driver error message
hpe1410_error_message(vi, errStatus, err_message);
// display the error
printf("HP E1410 Driver Error : %ld, %s\n", errStatus, err_message);
}
hpe1410_reset(vi);// reset the multimeter
hpe1410_close(vi);// close the multimeter handle
exit(1);
}
return;
}
//**************************************************************
// Error handling function
void err_handler (ViSession vi, ViStatus err)
{
char buf[1024]={0};
viStatusDesc(vi,err,buf);
printf("ERROR = %s\n", buf);
return;
}
Summary of Contents for AHA-8940
Page 4: ...4 Contents ...
Page 8: ...8 Notes ...
Page 10: ......
Page 68: ...68 Specifications Appendix A ...
Page 76: ...76 Editing the HP E8491A Resource Manager Configuration Appendix B ...
Page 80: ...80 Index ...