LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ring control showing duplicate values

Hi....
 
In my application iam using a ring control.
 
And the ring control is taking values from the database based on a criteria.
 
The problem is if the ring control has to display 20 data,its displaying 20 but 1 occuring as duplication so one of the actual data missing.
 
After assigning the appropriate array to ring's propery node strings,i have set the appropriate value to ring's ringtext.
its displaying the correct value as ring text.But the same value is duplicated as the last value of the ring and is having a check mark.
 
More over,the ring control is popping down if iam selecting the first values.
I want the ring to be popped up instead of down.Is there any solution?
 
Thanks....
0 Kudos
Message 1 of 2
(2,760 Views)

Regarding the ring going up instead of down, I don't think you can control that, because I believe it is being determined automatically by the position of the ring on the screen.

As for the duplicated value, a ring is a numeric control. To change the selected element you need to wire the IDs of the strings into the Values[] property and then give the ring terminal the appropriate value. An added bonus is that you can then use the ring value in your SQL queries as an identifier.

Personally, I have a VI which accepts a ring reference, 2 arrays (strings and values) and a desired value and then fills the data into the ring and changes the value either to the desired value or (if it's not in the array of values) to the lowest possible value. That way, you can fill as many rings as you like in your application.

Another option you might wish to look into is using a combo box (string palette), but I don't like them.


___________________
Try to take over the world!
Message 2 of 2
(2,747 Views)