LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure

Solved!
Go to solution

Hello,

 

I want to execute an VI when an changement occured on my global variable.

Any idea on how I can do that with a event structure or other way ?

 

Thanks.

Peter.

Labview 2010
0 Kudos
Message 1 of 7
(2,495 Views)

You can use the value signaling property of a control to fire the event programatically. So you can wire the Global to a control say a boolean to its value signaling property node. I am assuming your global variable as boolean else you need use a shift register to check with its previous value and fire the event.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 7
(2,485 Views)

I'm not sure to understand, any example please ?

Peter.

Labview 2010
0 Kudos
Message 3 of 7
(2,479 Views)
Solution
Accepted by topic author Peter Saraiva

Hi Peter,

 

simply test for value changes and call your subVI when needed:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(2,474 Views)

Check the attached example replace the Gloabl variable control with the actual global variable.

This explains about the Event triggering through software. But Gerd's solution is the very simple one you can go for that.

-----

The best solution is the one you find it by yourself
Message 5 of 7
(2,468 Views)

Thank you all for your help,

 

Gerd's solution is more simple. Smiley Happy

Peter.

Labview 2010
0 Kudos
Message 6 of 7
(2,459 Views)

Perhaps something like this.

0 Kudos
Message 7 of 7
(2,442 Views)