LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Elements in Cluster to Array in Cluster (generic)

Solved!
Go to solution

Hi,

Is there an easy and generic way to combine multiple clusters (containing the same datatypes (1 int and 2 strings)) to get a cluster containing arrays of the same datatypes (1Array of int and 2 Array of strings)?

 

The Background is that I recieve multiple measurement-clusters with measurement values (int) as well as the name of the measurement (string) and the unit (string) and want to end up with arrays inside a cluster containing the infos for each measurement at the same index of the array.

 

Best,

LabEti

 

 

0 Kudos
Message 1 of 6
(2,442 Views)

Hi Eti,

 

convert both input clusters to arrays, then bundle them…

Best regards,
GerdW


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

Hi,

Unfortunately that didn't solve my problem.

I would like to get something like this (picture) in the end where the number of input clusters would be variable.

Best

LabEti

0 Kudos
Message 3 of 6
(2,426 Views)
Solution
Accepted by LabEti

Hi,

 

whenever you need to handle several objects of the same datatype you should build an array of them:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(2,421 Views)

@GerdW wrote:

Hi,

 

whenever you need to handle several objects of the same datatype you should build an array of them:

check.png


Isn't there a built in function for that nowadays? (since 2014 or something)

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
Message 5 of 6
(2,404 Views)

Index and bundle exists!  I would caution the OP to use a variant rather than a string. 


"Should be" isn't "Is" -Jay
Message 6 of 6
(2,371 Views)