Overview
This example demonstrates how a queue can be shared by multiple VIs in the same LabVIEW Project.
Description
The first VI, Enqueue.vi, obtains a queue called myQueue and enqueues integers 0 to 1 in a for loop. The second VI, Dequeue.vi, dequeues each element from myQueue and displays the result in an Array. The purpose of this is to demonstrate how, in a LabVIEW project, you can share a queue across VIs by writing the same queue name in the Obtain Queue function.
Steps to Implement or Execute Code
- In order to run this example, save the Zip File attached
- Open the project Queue.lvproj
- Open both the Enqueue and Dequeue VIs
- Run Dequeue.vi and Enqueue.vi
- Notice how the Array Indicator in Dequeue.vi is populated with the values which were enqueued in Enqueue.vi
Requirements
Software
LabVIEW 2011 or later
Block Diagram
Julia P.