03-01-2010 03:31 AM
Hello,
In my MainVI, I want to send a variable, say a Boolean, as an input to a SubVI. If the value of this boolean changes within the subVI, I want to reflect the changes instantly in the MainVi.
How can I achieve this? I know, global variable can be an option but I do not want to use it.
Thank you.
-H
03-01-2010 03:35 AM
You can pass a reference of the control to the subVI.
Then you can use the 'Value' or 'Value (signaling)' (triggering a value change event) properties to get/set the value.
Hope this helps
03-01-2010 10:47 AM
03-01-2010 12:09 PM
Try using a functional global (FG) instead. With the FG, you can save the value into a shift register of the FG and get it later on.
Yik
03-01-2010 12:33 PM
03-01-2010 12:55 PM