LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with cluster and arrays.

Solved!
Go to solution

Hello,

 

I am trying to create a program with a "ring" in order to be able to act as a case structure later on. But I want the values from the "ring" to be read from an excel file so I can add cases without having to modify the program. 

 

Since I am just starting to play with it I created and excel with 3 columns. First column is the ring item, second column is the ring value, and the last 2 columns are just first name and last name. 

 

josear04_1-1615811916827.png

 

 

I worked out the logic that I think could work. But unfortunately I have an issue with the output result because of the type of date. In order to use a property node on the ring to modify the values and items (stringsandvalues) it must be a 1D array of cluster of 2 elements. I have the 2 elements and when I use bundle I get a cluster of 2 elements with 2 of the 1D arrays. The program doesn't like this so it wont run. 

 

 

josear04_2-1615812135886.png

 

 

josear04_3-1615812143634.png

 

josear04_4-1615812158488.png

Thanks for all the help and ideas. 

0 Kudos
Message 1 of 5
(1,046 Views)

You have it backwards.  You have a cluster of arrays.  You need an array of clusters.  Try using Build Clusters Array instead of the Bundle.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(1,035 Views)

Thanks for your response. I tried using build clusters array but it doesn't work either because its two different types of data. Any idea on how to fix this??

 

josear04_0-1615817304653.png

 

0 Kudos
Message 3 of 5
(995 Views)
Solution
Accepted by topic author josear04

Hi Jose,

 

use IndexAndBundleClusterArray instead:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(990 Views)

Thanks a lot. It worked perfectly. 

0 Kudos
Message 5 of 5
(976 Views)