LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you overwrite values in a ring control?

Solved!
Go to solution

Hello,

I have a Ring Control (Text Values) in Labview 2009 and it is programatically populated with 20 items. The end user either selects from the items in the list or populates it with a new item based on a checkbox for adding new item. What I want to do is when the 20th item is entered and the user selects the checkbox for item 21 to be added I would like to rap around to the first item in the list and overwrite it. Is this possible and a sample vi would be great to demonstrate how this is done. Any help would be greatly appreciated!

 

Thanks in Advance

Charlie

Everything is Free! Until you have to pay for it.
0 Kudos
Message 1 of 3
(2,648 Views)
Solution
Accepted by topic author ccurtis

Replace Array Subset.  You will need to keep track of which item to replace in a shift register.  I would also keep the list in a shift register to make your life a little easier.


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
Message 2 of 3
(2,644 Views)
Yes. Use the item names property of the ring control and read the items as 1D array then replace the first element with the new element and write it back to the same property. Is this what you want?
Since I am posting from mobile I cannot give you an example.
-----

The best solution is the one you find it by yourself
Message 3 of 3
(2,642 Views)