LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combine two clusters

Is there any option to combine two boolean clusters into one just like concatenating two arrays to one?

(I don't want to convert cluster to array, merge them and re convert them back to cluster because I loose the labels that way.)

0 Kudos
Message 1 of 3
(6,066 Views)

Hi kevin,

 

Is there any option to combine two boolean clusters into one just like concatenating two arrays to one?

Yes:

1. create typedefinitions for all clusters (2 inputs, 1 output)!

2. Unbundle both input clusters.

3. Bundle the values into the output cluster.

4. Put this operation into a subVI with a nice icon and description…

 

You can get rid of all this when you use the "output cluster" in all locations where you currently use those 2 input clusters…

Or rethink your data handling: there are other ways to store a bunch of key-value-pairs!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(6,060 Views)

The Bundle should do that, you'll get a new cluster with 2 subclusters.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(6,044 Views)