HP AHA-8940 Configuration And User's Manual page 42

Ieee 1394 pc link to vxi
Table of Contents

Advertisement

/* 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;
}
42 VXI Programming Using the IEEE 1394 Serial Bus
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.
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

E8491aIeee 1394

Table of Contents