Home
Quickstart Guide
Introduction RIO Academic RIO Application examples Your first RT app Your first FPGA app
Real-Time
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)
FPGA
Design flow Simulation Inter-process communication RT/host communication Derived clock domain IP blocks FPGA personality
Networking
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

Stream high-speed data through a network stream channel

Efficiently transfer blocks of data between the RT and PC by network streams.

LabVIEW RT block diagram snippet: RT writes blocks of data to a network stream channel, PC reads the blocks from the same channel

Use cases

Features

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 Multiple Elements to Stream
Read Multiple Elements from Stream
Destroy Stream Endpoint
Flush Stream
Open FPGA VI Reference
Read-Write Control
Invoke Method
Close FPGA VI Reference
FIFO Method Node
Join Numbers
Split Number
Loop Timer

Example code

Expected results

https://youtu.be/UQE7KCLcTBo (5:23)

Developer walk-through

NOTE: See the walk-through videos of the RT/FPGA high-speed data streaming and network-published shared variable code examples to learn about those aspects of this LabVIEW project; the following walk-through covers only the network streaming technique between the PC and RT.

https://youtu.be/WtioGKULiG8 (4:54)

Outline

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.