Example Code

Using multiple queues with clusters Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how one can use multiple queues and pass them around the block diagram in clusters.

 

Description 

This application allows the user to enqueue elements to different queues depending on a specific user input using one producer loop and multiple consumer loops. This means we can have many queues dequeing at different rates but all enqueued at the same place on the front panel and with one producer loop

 

Requirements

  • LabVIEW 2012( (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI
  2. Entry data input
  3. Click "Enqueue"

Additional Information or References   

Block Diagram                                                          bundle queues into cluster.png

                                                                          

**This document has been updated to meet the current required format for the NI Code Exchange.** 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
omarbedair
Member
Member
on

Thank you very much, clear enough.

My only issue is I am no able to create a cluster of queues. I don;t know where to get the queue object from.

A turnaround is using unbundle rather than unbundle by name. But then I aam prone for error with 10 queues stacked.

Thank you for your help