LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array Cluster help

Hello
 
How can I pick a subset of string array from an array which is contained in a cluster? Any help is appreciated.
 
THanks
0 Kudos
Message 1 of 8
(3,602 Views)
Hi liloco...,

use an "unbundle" node before the "array subset"!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,596 Views)
You have to unbundle(by name) your cluster and then pick your array using VI array subset.
0 Kudos
Message 3 of 8
(3,595 Views)
My problem is little different. Please look at the jpeg. What am trying to do is to use a string array named steps(It may have step 0, step 2 etc) to pick up the corresponding profiles(profile4, profile1 etc) from the step cluster. Then pickup the corresponfding table(table 3, table 2 etc) from profile cluster using the profiles string array. Hope it is clear.
 
Thanks
0 Kudos
Message 4 of 8
(3,590 Views)
Hi lilocomotive,

how is the relation between steps, profiles and tables?

Is it by the number in each cluster element (numSteps, numprofiles)? Then use this number for the next "index array" operation.
Or is it by name (like step2=profile4=table2)? Then you have to make a lookup-table to find corresponding items...

Could you attach your vi instead of a picture the next time?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 8
(3,582 Views)
OK...this is how it is . Each cycle will have various steps. Each step will have various profiles and each table will have various tables. For example Cycle0 branches to step 0 and step 3. Step 0 will have profile 1,3,4 and step 3 will have lets say profile 1,2,5. Then profile 1 will have table 1/5/2 and so on. Relation between cycle-steps-profile-table is by name. Only problem attaching the vi is the previous part contains lot of sub vi's. Any help on lookup tale?
0 Kudos
Message 6 of 8
(3,569 Views)

Hi,

Here is a great KnowledgeBase article about creating Look Up Tables. Happy coding!

Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 7 of 8
(3,539 Views)
Hi lilocomotive,

when you want to parse by name you can also use case structures - see attachment.
Don't forget to include a default case! (You can make the text comparison "case insensitive"...)
Best regards,
GerdW


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