CNVCreateStructDataValue
int CNVCreateStructDataValue (CNVData *data, CNVData fields[], size_t numberOfFields);
Purpose
Creates struct network variable data.
Parameters
Input | ||
Name | Type | Description |
fields | CNVData[] | The struct fields of the network variable data. |
numberOfFields | size_t | The number of struct fields in the network variable data. You can call GetNumberOfStructFields to get this number. |
Output | ||
Name | Type | Description |
data | CNVData | The handle of the network variable data that contains the specified struct. Call CNVDisposeData to dispose the handle when you are done using it. |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. One indicates that a next item was found, zero indicates that a next item was not found, 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\3DSim\NV3DSim.cws for an example of using the CNVCreateStructDataValue function.