11-05-2010 07:34 PM
Hello:
Is there support in NI-VISA library (4.6 and up) to get the string describing an error message returned from a function? NI-DAQmx has this kind of facility, for example.
Thank you,
-Ilya.
Solved! Go to Solution.
11-05-2010 08:32 PM
LabVIEW has the ability, not DAQmx. Just use the Simple Error Handler or General Error Handler.
11-08-2010 12:40 PM
Hi Dennis:
DAQmx actually does have this ability - DAQmxGetErrorString and DAQmxGetExtendedErrorInfo.
Yes, LabVIEW has the support for this. Unfortunately I can't use LabVIEW.
-Ilya.
11-08-2010 02:21 PM
I found it:
ViStatus viStatusDesc(ViObject vi, ViStatus status, ViChar desc[])
The viStatusDesc() operation is used to retrieve a user-readable string that describes the status code presented. If the string cannot be interpreted, the operation returns the warning code VI_WARN_UNKNOWN_STATUS. However, the output string desc is valid regardless of the status return value.
-Ilya.