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

UDP sender and receiver and "UDP ping" application

Send UDP messages to a destination IP address and port number, listen for incoming UDP messages on a user-defined port, and echo received messages back to the source. Combine the sender and receiver into a single "UDP 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: "UDP Sender" loop sends system name and time and 1-second intervals to the destination IP address and port

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:

UDP Open
UDP Close
UDP Read
UDP Write
Obtain Notifier
Get Notifier Status
Send Notification
Release Notifier
String To IP
IP To String
Property Node
Get Time-Date String
Scan From String
Format Into String

Example code

Expected results

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

Developer walk-through

https://youtu.be/1vb6yuOCGsU (5:42)

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.