LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error reporting

I am needing to know how error reporting is done in LabWindows. ...I am writing a IVI driver...
The checkStatusCallback function queries the Status register of an instrument, and if an error has occured, the status variable is set to a negative value. But how is the error reported to LabWindows?
I have followed to example, but am still not sure how to report the instrument specific error to the user.
I know I can write a seperate function to do this,
But I am trying to make the driver consistent with IVI specs. Please advise
0 Kudos
Message 1 of 2
(2,797 Views)
Hi,

When the CheckStatus function detects an error in the instruments it passes back to the application: IVI_ERROR_INSTR_SPECIFIC.

The driver then implements some functions, such as error_query, to retrieve the actual error from the device.

I looked into the hp34401a instrument driver.

DiegoF
National instruments.
0 Kudos
Message 2 of 2
(2,797 Views)