The prototype of the event callback function is as follows:
void myCallback (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
The error, if one occurs, will be sent to this callback function. You will not have to query your pxi board.
Additionally, using DAQ event 2 will generate an interrupt upon a completed operation or the occurrence of an error. The acquisition on the PXI board will stop after receiving this event.
Regards,
Justin Britten
Applications Engineer
National Instruments