04-21-2009 06:20 PM
Hello all,
I'm attempting to retrieve multiple values from various ring controls and compare them against stored values. I didn't run into anything until my number of values exceeded 9 items. I've attached a screenshot showing the structure of what I'm attempting.
Is there a way to get more than 9 values out? I tried by name, but the values all share the same index after 7 (=8).
Thanks in advance...
Chris
Solved! Go to Solution.
04-21-2009 07:32 PM - edited 04-21-2009 07:35 PM
Right click on the 'array to cluster' primitive and modify the cluster size to suit your needs.
Is there a reason why you convert it to a cluster? Why not just drag down an array index to the size you want.
04-21-2009 07:34 PM
04-21-2009 07:37 PM - edited 04-21-2009 07:40 PM
Welcome...
Better still, run it into a for loop extracting out the values and building an array in one step.
That way it automaticall handles changes to the size of the source.
04-22-2009 12:59 PM
Regarding your question Troy - LabVIEW is not my first language and 'm still coming up to speed on some data types.
I've attached a VI attempting what you're describing and this appears to work. Is this similar to what you're thinking?
Thanks,
VG
04-22-2009 06:53 PM - edited 04-22-2009 06:55 PM
Yep, you have the concept right. LabVIEW makes it even easier then that though.
If you right-click on the input tunnel on the for loop you can turn on or off 'auto-indexing'.
(It changes appearance)
04-23-2009 08:15 AM
Nice. Thanks for the assist Troy - I'm going to implement this in a sub VI for my app.