Requires: NI Peer-to-Peer Streaming
Use the peer-to-peer Streaming functions in your C/C++ application development environment (ADE) to manage the streaming of data directly between peripherals without sending the data through a host device. Refer to the hardware documentation to determine if the hardware is capable of peer-to-peer streaming.
Function | Description |
---|---|
nip2pCreateAndLinkStream |
Links a writer and reader and creates a stream between them. |
nip2pDestroyStream |
Unlinks the writer and reader and purges data from the stream. Any existing data in the writer is lost. If a stream is enabled, this function disables the stream without flushing the writer before unlinking the reader and writer. To guarantee all existing data in the writer is flushed to the reader before disabling the stream, use the nip2pFlushAndDisableStream function. |
nip2pDisableStream |
Immediately disables a stream without flushing data from the writer. Any existing data in the writer is lost. To avoid data loss and guarantee all existing data in the writer is flushed to the reader before disabling the stream, use the nip2pFlushAndDisableStream function. |
nip2pEnableStream |
Prepares the stream for data transmission. After this function runs, the stream can transmit data from the writer to the reader. You must enable the stream before you can transmit data. You also can set the enable stream parameter of the nip2pCreateAndLinkStream function to 1 to enable a stream without using the nip2pEnableStream function. |
nip2pFlushAndDisableStream |
Immediately flushes data from the writer and disables the stream. Flushing the writer prevents the writer from accepting new data and sends all existing data in the writer to the stream. If you do not want to flush the writer before disabling the stream, use the nip2pDisableStream function. |
nip2pWaitForStreamEvent |
Blocks until either the specified stream event occurs or until the specified timeout has expired. |
nip2pLinkStream |
Links the writer and reader in the stream that you specify. |
nip2pUnlinkStream |
Unlinks the writer and reader in the stream that you specify. If the stream is enabled, this function disables the stream before unlinking the writer and reader. |
nip2pGetAttribute |
Gets (reads) the value of a stream attribute. |