LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reference trigger event case value change

Solved!
Go to solution

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!

0 Kudos
Message 1 of 6
(4,741 Views)

Post your two VI's so we can see what you are doing.

 

Other possibilities, notifiers, user events, functional global variables, ....

0 Kudos
Message 2 of 6
(4,732 Views)

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!

Download All
0 Kudos
Message 3 of 6
(4,695 Views)
Solution
Accepted by topic author Fibo

You need to use the Value(Signaling) property to trigger a Value changed event.

 

Lynn

0 Kudos
Message 4 of 6
(4,685 Views)

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!

0 Kudos
Message 5 of 6
(4,678 Views)

The Help files can be most informative.  If in doubt, check them.

 

Lynn

0 Kudos
Message 6 of 6
(4,665 Views)