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 procedure

Create a network-published shared variable (NPSV)

The network-published shared variable (NPSV) behaves like a global variable to link targets through the network.

https://youtu.be/_4GZuqsNhCg (5:07)

Procedure

  1. Open the LabVIEW project
  2. Right-click the RT target
  3. Select “New | Variable”
  4. “Variable” page: Enter the variable name, select “Network-Published” as the variable type, and choose the desired data type
  5. “Description” page: Enter a description for the variable, if desired
  6. “Network” page: Enable buffering (FIFO), if desired; enable “Single Writer”, if desired
  7. “RT FIFO” page: enable this option when the NPSV resides in a deterministic loop
  8. Right-click the newly-created library and choose Save
  9. Enter the name of the LabVIEW library (.lvlib) file; recommended that you store this file with the LabVIEW project file
  10. Drag the variable from the LV project window to the VI block diagram window
  11. Add additional variables by right-clicking the LabVIEW library, and select New | Variable

Tips