How to Communicate with Two Reader and Writer Endpoints with One IP in a Network Streams

Updated Oct 30, 2019

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW

Operating System

  • Windows

Issue Details

Is it possible to communicate when creating two reader and writer endpoints with one IP in the network streams? I modified and tested the code based on the network streams shipping example provided by NI, but the data communication was not working properly.

Solution

Network streams are an easy-to-configure, tightly integrated, and dynamic communication method for transferring data from one application to another with throughput and latency characteristics that are comparable with TCP. And, Network streams are designed and optimized for lossless, high throughput data communication. You can see more detailed information about NI Network Streams technology in here: Lossless Communication with Network Streams: Components, Architecture, and Performance

The NI Network Streams shipping example is configured to communicate using one Reader and Writer endpoint on one common IP. If you want to use two Readers and Writers, create two endpoints and specify Reader 1 and 2, and Writer 1 and 2.

Here's how it looks like this in LabVIEW code:
  • Host code of the Network Streams
  • Target code of the Network Streams


Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.