HP (Hewlett-Packard) AHA-8940 Network Router User Manual


 
42 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3
/* query instrument error */
hpe1563_dcl(vi);/* send a device clear */
hpe1563_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 */
hpe1563_error_message(vi, errStatus, err_message);
/* display the error */
printf("HP E1563 Driver Error : %ld, %s\n", errStatus, err_message);
}
hpe1563_reset(vi);/* reset the digitizer */
hpe1563_close(vi);/* close the digitizer 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;
}
Comments
1. A single instrument session opened with the hpe1563_init function can be
used by both HP VXIplug&play driver function calls and by HP VISA
function (i.e viMoveIn32) calls.
2. This manual is included on the HP I_O Libraries CD. By viewing the
manual from the CD, you can cut and paste this program into your
development environment.
3. The section “Using HP E8491A Shared Memory” contains an example of
block data transfers using HP SICL.