CNVGetDataServerError
- Updated2023-02-21
- 1 minute(s) read
int CNVGetDataServerError (CNVData data, unsigned int *serverError);
Purpose
Gets any server or device error associated with the data. Consult your server or device documentation for any description of this error code. Call the GetGeneralErrorString toolbox function to obtain descriptions of National Instruments error codes.
Parameters
Input | ||
Name | Type | Description |
data | CNVData | The handle that identifies the network variable data. |
Output | ||
Name | Type | Description |
serverError | unsigned int | The server error associated with the data. |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. Zero represents successful execution, one indicates that the data does not have server error information, and a negative number indicates that an error occurred. You can call CNVGetErrorDescription to obtain a string that describes the error. |
Additional Information
Library: Network Variable Library
Include file: cvinetv.h
LabWindows/CVI compatibility: LabWindows/CVI 8.1 and later
Example
Refer to networkvariable\Quality\NVQuality.cws for an example of using the CNVGetDataServerError function.