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 code example

Global variable (RT)

Use a global variable to communicate between two parallel process loops contained within different VIs under the same target, and use a global variable to stop parallel loops with one "stop" button.

LabVIEW RT block diagrams: VI #1 writes a global variable, VI #2 reads the same global variable

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:

Global Variable
Flat Sequence Structure
Feedback Node

Example code

Expected results

https://youtu.be/G-kH06h3_Ck (1:15)

Developer walk-through

https://youtu.be/-r7Q8HCxpas (4:37)

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.