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

Programmatically access a network-published shared variable (NPSV)

Use the NPSV programmatic API (application programmer's interface) VIs as an alternative method to a shared variable node.

LabVIEW RT block diagram snippet: RT opens a handle to a network-published shared variable and reads its value

NOTE: Refer to the NPSV code example page for a detailed introduction to NPSVs; the sample code presented here is a modified version of that example.

Use cases


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:

Open Variable Connection
Read Variable
Write Variable
Close Variable Connection

Example code

Expected results

https://youtu.be/QMbwbu9UYrI (2:38)

Developer walk-through

https://youtu.be/4lK2Vr_184o (3:26)