To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI demonstrates how to provide a double and a string instance of the Queue Sub VI and use them in your program.
Description
LabVIEW users may want to create a generic sub-VI which can perform operations on Queues of different data types. However, once a control is made for a Queue VI's Queue input, the control is set to a specific data type. The instance of the polymorphic Queue VIs which ship with LabVIEW is only updated when the VI is wired directly. As such, if a user wires the connector pane of his/her VI to this control and wires a Queue of a different data type to it, a broken wire is displayed on the top level VI.
In order to get around this, the user should create one VI which accomplishes the task and copy this VI, changing the name and data type of each copy, as many times as there are data types needing to be used. Once these files exist, place them in a Polymorphic VI and use this throughout your program.
The attached project has a double (DBL) and a string instance of the Queue Sub-VI. These sub-VIs are included in the "Queue Sub-VIs" Virtual Folder.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**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.