Admin Production ni-theme
Current Publication

CNSWriteMultipleScalar

LabWindows/CVI

CNSWriteMultipleScalar

int CNSWriteMultipleScalar (CNSEndpoint endpointID, int timeout, void *array, size_t numElements);

Purpose

Writes multiple scalar data items to a network stream. You can call this function from the writer endpoint only.

Parameters

Input
Name Type Description
endpointID CNSEndpoint The handle of a network stream endpoint. You can obtain this handle using the CNSNewScalarEndpoint function.
timeout int The time, in milliseconds, that this function waits for free space in the buffer. The default value is CNSWaitForever, which means this endpoint waits indefinitely. If the timeout expires, this function returns an error.
array void * The array of scalar elements that you want to write to the network stream.
numElements size_t The size of the array you want to write to the network stream.

Return Value

Name Type Description
error int An error code returned by a Network Streams Library function.

Additional Information

Library: Network Streams Library

Include file: cvinetstreams.h

LabWindows/CVI compatibility: LabWindows/CVI 2013 and later