Quickstart Guide
Introduction RIO Academic RIO Application examples Your first RT app Your first FPGA app
Basic procedures System admin File system I/O monitor System controller architecture Timed loops Inter-process communication RT/Host communication RT/FPGA communication FPGA personalities Interrupts Datalogger (file I/O)
Design flow Simulation Inter-process communication RT/host communication Derived clock domain IP blocks FPGA personality
Get connected Email Web services UDP TCP IP addresses
Site Map
Guides Code examples Procedures Tags LabVIEW block diagram elements Targets Communications All pages
Glossary How to use About
RIO Developer Essentials Guide for Academia
RT PC code example

Send messages through a network stream channel

Send command and status messages through a low-latency lossless network-based data communication channel between the RT target and PC host system.

LabVIEW RT block diagram snippet: PC writes one element to a network stream channel, RT reads the element from the same channel

Use cases


Keep in mind

LabVIEW block diagram elements

Locate these elements with "Quick Drop" (press Ctrl+Space and start typing the name); click on an icon to see more sample code that uses that element:

Create Network Stream Writer Endpoint
Create Network Stream Reader Endpoint
Write Single Element to Stream
Read Single Element from Stream
Destroy Stream Endpoint
Property Node
Invoke Node
Event Structure
Format Into String
String To IP
IP To String
Local Variable
Feedback Node
Flat Sequence Structure

Example code

Expected results

https://youtu.be/N-bKjYHvXyg (2:20)

Developer walk-through

https://youtu.be/_axWmK2z5TQ (5:29)


For more information

  1. Lossless Communication with Network Streams: Components, Architecture, and Performance (http://www.ni.com/white-paper/12267/en/)
    An introduction to network streams, features, and performance.
  2. Using the Right Networking Protocol (http://www.ni.com/white-paper/12079/en)
    Discusses the three most-common communication models -- command or message-based, process data, and streaming/buffered -- and the available networking protocols that are best suited to each model: TCP, UDP, network-published shared variables, network streams, and web services.