LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 4
(2,309 Views)
Hi ouchie_85,
can you explain a bit more about what you want to do?
Mike
0 Kudos
Message 2 of 4
(2,290 Views)
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 hereSmiley Wink
Best regards,
GerdW


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

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

Download All
Message 4 of 4
(2,247 Views)