niDCPower_error_query
- Updated2025-10-06
- 1 minute(s) read
Reads an error code and a message from the instrument's error queue.
Syntax
ViStatus _VI_FUNC niDCPower_error_query(ViSession vi, ViInt32 *errorCode, ViChar errorMessage[IVI_MAX_MESSAGE_BUF_SIZE])
Parameters
| Name | Direction | Type | Description |
|---|---|---|---|
| vi | [in] | ViSession | Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function. |
| errorCode | [out] | ViInt32 * | Returns the error code read from the instrument's error queue. |
| errorMessage | [out] | ViChar[IVI_MAX_MESSAGE_BUF_SIZE] | Returns the error message string read from the instrument's error message queue. |
Returns
Reports the status of this operation. To obtain a text description of the status code, call niDCPower_error_message. To obtain additional information concerning the error condition, call niDCPower_GetError. The general meaning of the status code is as follows:
Value | Meaning |
|---|---|
0 | Success |
Positive Values | Warnings |
Negative Values | Errors |