Get Error Info Operation - Edit IVI Tools Step Dialog Box
- Updated2025-07-21
- 1 minute(s) read
Get Error Info Operation - Edit IVI Tools Step Dialog Box
Get Error Info Operation
The Get Error Info operation returns error information for the last IVI error for a given IVI session. The operation retrieves and then clears the error information for the instrument session. The error information includes a primary error code, a secondary error code, and an error elaboration string. The error information is the same as the values held in the following IVI attributes:
IVI_ATTR_PRIMARY_ERROR
IVI_ATTR_SECONDARY_ERROR
IVI_ATTR_ERROR_ELABORATION
The Get Error Info operation contains the following options:
- Primary Error Code —A variable or property to which the step assigns a primary error code for the session or Execution thread. A value of VI_SUCCESS (0) indicates no error occurred. A positive value indicates a warning. A negative value indicates an error.
- Secondary Error Code —A variable or property to which the step assigns the secondary error code for the session or execution thread. If the primary error code is a nonzero value, the secondary error code can further describe the error or warning condition. A value of VI_SUCCESS (0) indicates no further description.
- Error Elaboration —A variable or property to which the step assigns the error elaboration string for the session or execution thread. If the primary error code is a nonzero value, the elaboration string can further describe the error or warning condition.