niDCPower_error_message
- Updated2023-04-15
- 1 minute(s) read
ViStatus niDCPower_error_message(ViSession vi, ViStatus errorCode, ViChar errorMessage[256]);
Purpose
Converts a status code returned by an instrument driver function into a user-readable string.
Parameters
Input | ||
Name | Type | Description |
vi | ViSession | Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function. |
errorCode | ViStatus | Specifies the status parameter that is returned from any of the NI-DCPower functions. |
Output | ||
Name | Type | Description |
error_message | ViChar[] | Returns the user-readable message string that corresponds to the status code you specify. You must pass a ViChar array with at least 256 bytes. |
Return Value
Name | Type | Description |
Status | ViStatus | Reports the status of this operation. To obtain a text description of the status code, call the niDCPower_error_message function. To obtain additional information concerning the error condition, call the niDCPower_GetError function. |