LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set a ring value programmatically

I use a ring control that is filled in with values

The progranm value  is example 0.001

 

Ring
3
1
0.1
0.01
0.001
0.0001
0.00001
etc

 

How can i set the value of the ring programmatticly,

so the 0.001 is selected?

 

see attached example setRing.vi

 

Kind regards, Ben Arts

 

0 Kudos
Message 1 of 4
(4,475 Views)

You are using an Enum, not a Ring.  If you change it to a ring, you can set the values to be whatever you want.  So then you can just write the 0.001 to a local variable of the ring.


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

Hello,

Thank you for answer.

I tried but doesn't work.

see attached example SetRing1.vi

Were is the mistake?

 

Kind regards Ben Arts

0 Kudos
Message 3 of 4
(4,468 Views)

Change the data type of the ring to DBL and then edit the items to make the values match the displayed text.


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 4 of 4
(4,464 Views)