ViStatus pi40iv_ClearErrorInfo (ViSession instrumentHandle);
This function clears the error information for the current execution thread and the IVI session you specify. If you pass VI_NULL for the Instrument Handle parameter, this function clears the error information only for the current execution thread.
The error information includes a primary error code, secondary error code, and an error elaboration string. For a particular session, this information is the same as the values held in the following attributes:
PI40IV_ATTR_PRIMARY_ERROR
PI40IV_ATTR_SECONDARY_ERROR
PI40IV_ATTR_ERROR_ELABORATION
This function sets the primary and secondary error codes to VI_SUCCESS (0), and sets the error elaboration string to "".
The IVI Library also maintains this error information separately for each thread. This is useful if you do not have a session handle to pass to pi40iv_ClearErrorInfo or pi40iv_GetErrorInfo, which occurs when a call to pi40iv_init or pi40iv_InitWithOptions fails.
Input | ||
Name | Type | Description |
instrumentHandle | ViSession |
The ViSession handle that you obtain from the pi40iv_init or pi40iv_InitWithOptions function. The handle identifies a particular instrument session.
|
Name | Type | Description |
status | ViStatus |
Returns the status code of this operation. The status code either indicates success or describes an error or warning condition. You examine the status code from each call to an instrument driver function to determine if an error occurred.
|
Error Info
Utility
Pickering Interfaces PXI/LXI IVI Switch
Alphabetical Function Index
Hierarchical Function Index