取消
显示结果 
搜索替代 
您的意思是: 

Event structure

已解决!
转到解答

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 项奖励
1 条消息(共 7 条)
3,474 次查看

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 项奖励
2 条消息(共 7 条)
3,464 次查看

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

Peter.

Labview 2010
0 项奖励
3 条消息(共 7 条)
3,458 次查看
解答
接受人 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
4 条消息(共 7 条)
3,453 次查看

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
5 条消息(共 7 条)
3,447 次查看

Thank you all for your help,

 

Gerd's solution is more simple. 高兴表情

Peter.

Labview 2010
0 项奖励
6 条消息(共 7 条)
3,438 次查看

Perhaps something like this.

0 项奖励
7 条消息(共 7 条)
3,421 次查看