Writes an array of 16-bit integer data to the peer-to-peer endpoint.

Syntax

ViStatus __stdcall niRFSG_WriteP2PEndpointI16(ViSession vi, ViConstString streamEndpoint, ViInt32 numberOfSamples, ViInt16 endpointData[])

Remarks

Use this function to write initial data from the host to the endpoint before starting generation to avoid an underflow when you start the generation.

Supported Devices: PXIe-5673E

Related Topics

Peer-to-Peer Data Streaming–Refer to this topic for more information about configuring a stream.

Configuring Flow Control

Starting Peer-to-Peer Generation

Reconfiguring a Stream

Parameters

NameDirectionTypeDescription
vi[in]ViSession

Identifies your instrument session. The ViSession handle is obtained from the niRFSG_Init function or the niRFSG_InitWithOptions function and identifies a particular instrument session.

streamEndpoint[in]ViConstString

Specifies the stream endpoint FIFO to configure.

numberOfSamples[in]ViInt32

Specifies the number of samples to write into the endpoint FIFO.

endpointData[in]ViInt16[]

Specifies the array of data to write into the endpoint FIFO. The binary data is left-justified.

Returns

Returns the status code of this operation. The status code either indicates success or describes an error or warning condition. Examine the status code from each call to an instrument driver function to determine if an error occurred. To obtain a text description of the error code, call the niRFSG_GetError function. The general meaning of the status code is as follows:

Value

Meaning

0

Success

Positive Values

Warnings

Negative Values

Errors