Keysight E8491B IEEE 1394 PC Link to VXI User Guide 45Using this Chapter VXI Programming Using the IEEE 1394 Serial Bus// fetch readings from the digitizer's A24 spaceerrStatus = hpe1563_fetchAll_Q(vi, dataArrayLen, (ViInt32 *)rdgs,&numRdgs );// confirm readings transferred are valid by printing first 5readingsdataPtr = (ViInt16 *)rdgs;// query digitizer reading rangeerrStatus = hpe1563_range_Q(vi, 1, &range);printf("Reading samples are:\n\n");for (i=0; i<10; i+=2){printf("%lf\n\n",dataPtr[i]*range/32768);}// reset digitizer following the transfererrStatus = hpe1563_reset(vi);// close the device sessionhpe1563_close(vi);// Keysight VXIplug&play session}//***********************************************************************// error checking routinevoid check (ViSession vi, ViStatus errStatus){ViInt32 inst_err;ViChar err_message[256];if(VI_SUCCESS > errStatus){if(hpe1563_INSTR_ERROR_DETECTED == errStatus){/* 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("E1563 Driver Error : %ld, %s\n", errStatus,err_message);}hpe1563_reset(vi);/* reset the digitizer */hpe1563_close(vi);/* close the digitizer handle */