LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send clusters of different types using one queue

Hello everyone,
is there a method to transmit between loops clusters which have different elements using using only one queue or do i need to create a seperate queue for each cluster that i want to send? I have tried using the flatten to string but i have not been able to figure out how to unflatten with the correct type since this is not known until the cluster is sent via the queue.
(eg. one cluster has 2 boolean and a numeric, the other cluster has 2 boolean and 2 numeric.)
Any ideas are appreciated.
Thanks

Message Edited by DavidT on 05-11-2005 10:49 AM

0 Kudos
Message 1 of 2
(2,880 Views)
The attached example uses a queue whos data type is an enum and a string.

The enum is used to determine how to unflatten the cluster at the back end.

When you hit Go! a cluster of the type indicated by the control "Type" will be submit to the queue and picked-up at the other end.

Note: THe TypeD cluster is used to stop the second loop. If you set "Exit" true and write a Type = TypeD, the second loop will stop.

Have fun,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 2
(2,872 Views)