LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can OK button give value of ring?

Solved!
Go to solution

As i ask in subject is here any option to get value from Ok button > property node as specified ring value or only string ? because i use subVI where i choose what to do. And i want to do it with ring not with combo box. example sumary 2 numbers.

0 Kudos
Message 1 of 7
(3,347 Views)

Please attach a simplified version of youre code so we can figure out what you are talking about. A button and a ring are very different things.

0 Kudos
Message 2 of 7
(3,332 Views)

as you can see i refer BoolText.text from button but i would like to make that as ring value is it posible ?
ring.jpg

0 Kudos
Message 3 of 7
(3,279 Views)

It is still not clear what you want. Why not use a ring control instead?

0 Kudos
Message 4 of 7
(3,273 Views)

i need separate buttons for functions (sum,divide,multiply,...) and from OK buttons get ring value 

0 Kudos
Message 5 of 7
(3,269 Views)
Solution
Accepted by topic author kasikcz

Hi kasikcz,

 

as Christian said: use a ring constant in your event case!

(Simplest solution: create event cases for each button…)

 

More items/questions:

- why do you want to use a ring? Why not use an enum?

- why do you convert your math result to SGL when it is displayed in a DBL indicator?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,260 Views)

thx for answer i wasn't sure about using enum but it works 🙂 i wanted to have one event case where i handle more options but this is better.

and with SGL it's redundant not need to be there anymore.

0 Kudos
Message 7 of 7
(3,247 Views)