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

event structure multiple vi

Hi guys,
 
I would like to know how can i create a vi such that there are some buttons which would activate other vis when i run it? In addition how to wire the vis so that it will return to the main vi when i click continue. Thanks
0 项奖励
1 条消息(共 4 条)
2,826 次查看
Hi ouchie_85,
can you explain a bit more about what you want to do?
Mike
0 项奖励
2 条消息(共 4 条)
2,807 次查看
Hi ouchie,

how long have you been using LabView? Have you heard about sub-vis and while loops?

-Create a while loop in the subvi, wire the "Continue" button to the stop terminal - now the subvi will run until you press "Continue"...
-Make an event ("value change") for each button in your main vi. Now you can start a subvi with each button. When the subvis run longer you shouldn't include them directly in the event structure but prefer some producer/consumer-pattern (by default the event structure will block the vi until the event case is handled...)

You should also participate here眨眼表情
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
3 条消息(共 4 条)
2,803 次查看

Hai,

You can c the below example for your reference. Instead of that button named stop you can rename it as continue.

 

Hope this helps,

Mathan

4 条消息(共 4 条)
2,764 次查看