LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unbundle limit on ring control StringsAndValues?

Solved!
Go to solution

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.

  1. Create property node for StringsAndValues
  2. Convert the array to cluster
  3. Unbundle

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

0 Kudos
Message 1 of 7
(3,424 Views)
Solution
Accepted by topic author VisionGumby

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.

Message Edited by Troy K on 04-22-2009 10:35 AM
Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Message 2 of 7
(3,409 Views)
Simple enough - thanks Troy.
0 Kudos
Message 3 of 7
(3,406 Views)

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.

Message Edited by Troy K on 04-22-2009 10:40 AM
Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 4 of 7
(3,402 Views)

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

0 Kudos
Message 5 of 7
(3,368 Views)

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)

 ring values auto indexed

Message Edited by Troy K on 04-23-2009 09:55 AM
Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Message 6 of 7
(3,350 Views)

Nice.  Thanks for the assist Troy - I'm going to implement this in a sub VI for my app.

 

0 Kudos
Message 7 of 7
(3,331 Views)