LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ring control

Solved!
Go to solution

I created a ring control inside an array which the array can shrink and grow according to the user input. I'd like to save the selected value in a file. From what I understand, to do so, I need to use RingText.text but it only saved the last value of the array instead of all of it. How do I do to save all selected value? Thanks 😄 

0 Kudos
Message 1 of 7
(4,251 Views)

Hi,

 

I'm afraid I don't understand your question. 

 

It would be great if you could elaborate more. Also, if you don't mind, please tell us the overall problem you are trying to solve. I ask this, because I have a feeling that you're complicating something that can be done easily. 🙂 Apologies if I'm wrong.

 

0 Kudos
Message 2 of 7
(4,237 Views)

RingText.Text is the incorrect property if you want all of the strings. You want Strings[].

 

Turn ON context help. As you scroll through the properties, the help window will give you a description.

 

p.s. Just showing the image of a front panel of a VI is pretty much next to worthless in trying to fix a coding problem. 

Message Edited by Dennis Knutson on 11-29-2009 08:32 AM
0 Kudos
Message 3 of 7
(4,231 Views)

Ring to text.png

 

Using the property 'Strings []' and index array, search array.

 

Felix

0 Kudos
Message 4 of 7
(4,230 Views)

  I do think that I'm making things more complicated than it should be. Anyway, I've attached what I've done so far. I'm using ring control inside an array which the number of ring control inside array would be visible according to the user input. I used String[], but that won't save the selected value that's chosen; but instead, that saves every single option that my ring control has. I tried Index Array, but it gives me array element conflict. My guess is that I mixed up arrays and try to connect array to array which just won't work. I also tried using enum instead of ring (which works once, but gives me errors after that) because the values that I use in ring is gotten from the previous user input. I'm hoping that I'm making a lot of sense here. 🙂

0 Kudos
Message 5 of 7
(4,218 Views)
Solution
Accepted by topic author a01lida

If you are using sequential values in the Text Ring, you can simply do this.

 

 TextRingArray.png

Message 6 of 7
(4,199 Views)
ah! thanks a lot 🙂 🙂
0 Kudos
Message 7 of 7
(4,192 Views)