CNVCreateScalarDataValue

int CNVCreateScalarDataValue (CNVData *data, CNVDataType type, ...);

Purpose

Creates new data with the specified scalar value.

Parameters

Input
Name Type Description
type CNVDataType The type of the specified network variable data. Note that CNVBool refers to a 1-byte boolean type (char or unsigned char), and CNVString refers to a C-style NUL-terminated string.
value ... The new value of the network variable data.
Output
Name Type Description
data CNVData The handle of the network variable data that contains the specified scalar value. 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

Examples

Refer to the following examples that use the CNVCreateScalarDataValue function:

  • apps\chess\chess.cws

    Open example
  • networkvariable\3DSim\NV3DSim.cws

    Open example
  • networkvariable\Buffering\NVBuffering.cws

    Open example
  • networkvariable\Polling\NVPolling.cws

    Open example

WAS THIS ARTICLE HELPFUL?

Not Helpful