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

Queue

Use a queue to send messages and data between two or more parallel process loops contained within a VI or other VIs. Queues also serve as the foundation for the "Queued State Machine" design pattern.

LabVIEW RT block diagram: for-loop structure enqueues 10 integers, then another for-loop structure dequeues the same elements

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:

Obtain Queue
Enqueue Element
Dequeue Element
Enqueue Element at Opposite End
Get Queue Status
Release Queue

Example code

Expected results

https://youtu.be/WybkXih2miA (0:38)

Developer walk-through

https://youtu.be/wpLCJxgQhl0 (3:33)

Outline:

For more information

  1. What Is a Queue? (http://digital.ni.com/public.nsf/allkb/DD7DBD9B10E3E537862565BC006CC2E4)
    A description of the LabVIEW implementation of queues.