cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Elements in Cluster to Array in Cluster (generic)

Solved!
Go to solution
Highlighted

Elements in Cluster to Array in Cluster (generic)

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
(106 Views)

Re: Elements in Cluster to Array in Cluster (generic)

Hi Eti,

 

convert both input clusters to arrays, then bundle them…

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 6
(102 Views)

Re: Elements in Cluster to Array in Cluster (generic)

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
(90 Views)
Solution
Accepted by topic author LabEti
11-09-2018 04:23 AM

Re: Elements in Cluster to Array in Cluster (generic)

Hi,

 

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

check.png

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 4 of 6
(85 Views)

Re: Elements in Cluster to Array in Cluster (generic)


@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! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
Message 5 of 6
(68 Views)

Re: Elements in Cluster to Array in Cluster (generic)

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

Message 6 of 6
(35 Views)