LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO READ INDEX OF A RING MENU?

how it can be pulled off the string index builted of a ring menu and use it as as a control ? I have the necessity to use the index of ring as control.

Thanks

0 Kudos
Message 1 of 12
(4,862 Views)

I'm not completely sure what you are talking about.  I'm even more confused by looking at your supplied VI.

 

Do you just want the displayed string?  If so, you could probably just use a ComboBox (in the string palette).


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 12
(4,837 Views)

No, I want that when i changed the number of the index, the same number must appear in the control of the string. For example If I select the index 3 I want to read number 3 also in the control of the string automatically.

0 Kudos
Message 3 of 12
(4,822 Views)

I do not really understand what you mean. If you want the items in the combobox to display 1,2,3 and so on, why do you not simply name the items "1","2",....?

0 Kudos
Message 4 of 12
(4,805 Views)

In the VI that I sent,if I change the control that I called index, i want that change at the same time the index of the strings[  ]and the index of the strings 2 [ ]. 

I hope explained better and I apologize for the lack of precision.

0 Kudos
Message 5 of 12
(4,788 Views)

Ah, so you actually want this


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 6 of 12
(4,781 Views)

Hello Robbie,

 

your problem is hard to understand.

I suppose, "the number of the index" ist the value contained by your numeric control wit h the label "index". But what is the "control of the string"? on your front panel there is only a string indicator named "movimento". Then there are two string- array indicators, "Strings []" and "Strings [] 2".

If you want to have the numerical value of "index" displayed in "movimento", use the "Number to decimal String" function.

If you want to show the element in "Strings []" wich is at index position defined by "index", make a property node of the string- array indicator, and use the property  "index values".

 

Greets, Dave
0 Kudos
Message 7 of 12
(4,776 Views)

In a ring menu i wrote the item (string) and a value. I can read the string and the value but I don't read the corresponding index of the ring. In the VI that I sent I have 62 index. For example I have the index 1 and at the index 1 corresponding one string and one value, for the index 2 corresponding one string and one value, and so on. i have the necessity to read the index of a string and value that I want to use.

0 Kudos
Message 8 of 12
(4,752 Views)

A ring is just a special type of number that contains extra properties.

 

So just wire it up!

 

0 Kudos
Message 9 of 12
(4,743 Views)

Is this what you mean?

0 Kudos
Message 10 of 12
(4,699 Views)