CNVPutDataInBuffer
- Updated2023-02-21
- 2 minute(s) read
int CNVPutDataInBuffer (CNVBufferedWriter bufferedWriter, CNVData data, int bufferWaitTime);
Purpose
Puts data to write to a network variable in the buffer of a buffered writer connection. If the buffer is full, this function waits until bufferWaitTime milliseconds have elapsed. The system automatically writes the buffered data to the network variable.
![]() |
Note To avoid deadlocks, do not call this function in a network variable callback function. |
Parameters
Input | ||
Name | Type | Description |
bufferedWriter | CNVBufferedWriter | The handle that identifies the network variable buffered writer connection. |
data | CNVData | The handle that identifies the network variable data. |
bufferWaitTime | int | Number of milliseconds the Network Variable Library waits if the buffer is full. Pass CNVWaitForever to wait indefinitely. Pass CNVDoNotWait to return immediately with an error if the buffer is full. |
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