VXI VT1422A User Manual

Page 34

Advertising
background image

34 Getting Started

Chapter 1

if(VI_SUCCESS > errStatus)
{
hpe1422_dcl(addr); /* send a device clear */
if(hpe1422_INSTR_ERROR_DETECTED == errStatus)
{
/* read instrument error until error queue is empty*/

do
{

hpe1422_error_query( addr, &err_code, err_message);
if(err_code != 0) printf("Instrument Error : %ld, %s\n", err_code,
err_message);

}
while(err_code != 0);

}
else
{
/* query the instrument */
hpe1422_error_message( addr, errStatus, err_message);
/* display the error */
printf("Driver Error : %ld, %s\n", errStatus, err_message);
}
}

return;
}

Advertising
This manual is related to the following products: