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.
Содержание AHA-8940
Страница 4: ...4 Contents ...
Страница 8: ...8 Notes ...
Страница 10: ......
Страница 23: ...Interface Installation and Configuration 23 Chapter 2 Figure 2 9 Installing A and B size VXI Instruments ...
Страница 32: ...32 Interface Installation and Configuration Chapter 2 Figure 2 17 Typical Resource Manager Output ...
Страница 68: ...68 Specifications Appendix A ...
Страница 76: ...76 Editing the HP E8491A Resource Manager Configuration Appendix B ...
Страница 80: ...80 Index ...