09-24-2010 04:57 PM
hello,
I have 2 VI's, one has a toggle switch on it and an event case that watches for a value change on the toggle switch and if it detects one it lights up an LED indicator.
The second VI references the first VI and references the toggle switch. From this second VI I would like to be able to toggle the switch on or off and have the event case in the other VI do it's thing.
This is not happening. The even case doesn't catch the toggling when I do it from another VI referencing the switch
is there a workaround for this, a way to make the event case notice the referenced value change without having to not use event cases?
much thanks!
Solved! Go to Solution.
09-24-2010 09:18 PM
Post your two VI's so we can see what you are doing.
Other possibilities, notifiers, user events, functional global variables, ....
09-27-2010 01:05 PM
ok, I've attached two VI's.... basically I'm trying to use one to control the other, through reference calls. But because I have an even case in the Called vi, when I control it via a reference the even case never executes.
Run both VI's, go to the Called VI and toggle the switches, the LED will light up on the called VI for the regular switch, but the LED will not light up for the Event switch. Is there anyway around this where I can still use an event case?
PS - I'm using a "Find Reference by Label" SubVI.... I found it on this path in my labview libraries
C:\Program Files\National Instruments\LabVIEW 2009\vi.lib\Utility\traverseref.llb
much thanks!
09-27-2010 01:28 PM
You need to use the Value(Signaling) property to trigger a Value changed event.
Lynn
09-27-2010 02:04 PM
Value Signaling! I always wondered what that property was about, I never knew the difference between that and the Value property. That solved it, thanks!
09-27-2010 04:02 PM
The Help files can be most informative. If in doubt, check them.
Lynn