02-17-2016 07:53 PM
I have a radio button in a while loop in a subvi and I would like to control it using the main vi.
I have looked at:
http://www.ni.com/example/28769/en/
https://decibel.ni.com/content/docs/DOC-36073
My radio button has two states, On and Off, which are indicated by a round led for each. I am having difficult comparing the value of the radio buttons property node to the state that I want. For example I want the while loop to end if Radio Button value is On. I tried using variant to data, but I either did it wrong, or that is not what I am supposed to do.
02-17-2016 08:48 PM
do you mean this vi
02-17-2016 11:06 PM
Sort of except this is what it would look like to control it from the subvi. I want to be able to control it from the main vi.
02-18-2016 12:28 AM - edited 02-18-2016 12:41 AM
so you need this
02-18-2016 12:47 AM
So it will not work without making it an event?
02-18-2016 12:57 AM
02-18-2016 03:04 AM
No you don't have to use an Event Structure to perform this task in the Subvi.
See the attached example.
If you get the "Radio Buttons" reference from the Subvi, you can directly control it from your Main vi.
steve
02-18-2016 04:33 AM