03-26-2009 04:20 PM - edited 03-26-2009 04:20 PM
Here is essentially what a want to do. I want the subVI to open when a menu item is selected (i know how to do this) so the user can change values in a seperate window. However, in my daq loop I need a way to get these values when the case is switched to true. If I put the subvi outside the daq loop, it wont get the values when they are changed by the user. If I put it inside the daq loop then it will obviously open the subVI's front panel every time the loop spins. I would prefer not to use globals so if someone could help me avoid that i'd appreciate it. A picture is worth 1000 words i guess so I'll post a simplified one that hopefully helps in understanding.
03-26-2009 04:25 PM
Store the values using a functional global variable. AKA action engine. See Ben's nugget.
03-26-2009 05:20 PM - edited 03-26-2009 05:23 PM
03-26-2009 05:23 PM
Make a separate VI for the functional global. That way, you can access it inside or outside the loop. And it shouldn't have a visible front panel.
03-26-2009 05:28 PM - edited 03-26-2009 05:32 PM