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

TCP/IP sender and receiver and "TCP ping" application

Send TCP/IP messages to a destination IP address and port number, listen for incoming TCP/IP messages on a user-defined port, and echo received messages back to the source. Combine the sender and receiver into a single "TCP ping" application to test the communication channel between two network hosts, and illustrate the notifier method to stop parallel loops with one "stop" button.

LabVIEW RT block diagram snippet: Use TCP to read current time from NIST time server, parse and validate the returned string, update the RT system time accordingly

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:

TCP Open Connection
TCP Close Connection
TCP Read
TCP Write
TCP Create Listener
TCP Wait On Listener
Obtain Notifier
Get Notifier Status
Send Notification
Release Notifier
String To IP
IP To String
Property Node
Format Into String
Scan From String

Example code

Expected results

https://youtu.be/Agg_IoMa1hU (4:11)

Developer walk-through

https://youtu.be/L3zirD3axCk (6:45)

Outline

For more information

  1. Stopping Parallel While Loops in LabVIEW with One Stop Button (http://digital.ni.com/public.nsf/allkb/267704CDE91156D186256F6D00711AAE)
    Stop multiple process loops with channel wires, local variables, property nodes, notifiers, and queues.