DBS9900 User’s Manual
DBS9900 Driver Software
5-63
82-28993 Revision 01
5.7.6 Error
Message
an9900_errorMessage
This function takes the Status Code returned by the instrument driver functions, interprets it, and
returns it as a user-readable string.
Function Prototype
ViStatus
an9900_errorMessage
( ViSession
instrumentHandle
,
ViStatus
errorCode
,
ViChar
errorMessage[]
);
an9900_errorMessage
Parameters
Variable Type Description
<INPUT>
instrumentHandle
ViSession
This control accepts the Instrument Handle returned by the Initialize function to
select the desired instrument driver session.
errorCode
ViStatus
This control accepts the Status Code returned from the instrument driver
functions.
Default Value: 0 – VI_SUCCESS
<OUTPUT>
errorMessage
ViChar[]
This control returns the interpreted Status Code as a user-readable message
string.
Note: The array must contain at least 256 elements – ViChar[256].
<RETURN>
= 0
> 0
< 0
“VI_SUCCESS”
Warning: The function completed, but an exception condition occurred which
may require attention.
Error: The function did not complete successfully.
NOTE: Use the an902_error_message() function to get a textual description of
errors and warnings.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com