Admin Production ni-theme
Current Publication

CNSGetEndpointAttribute

LabWindows/CVI

CNSGetEndpointAttribute

int CNSGetEndpointAttribute (CNSEndpoint endpointID, CNSAttribute attribute, void *value);

Purpose

Obtains the value of an endpoint attribute.

Parameters

Input
Name Type Description
endpointID CNSEndpoint The handle of a network stream endpoint. You can obtain this handle using the CNSNewScalarEndpoint, CNSNewArrayEndpoint, or CNSNewEndpoint functions.
attribute CNSAttribute The endpoint attribute value you want to obtain.
Output
Name Type Description
value void The value of the attribute.

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

Example

Refer to networkstreams\cnsGUI.cws for an example of using the CNSGetEndpointAttribute function.