Showing results for 
Search instead for 
Did you mean: 

Controlling another vi by pressing a button in main vi labview

Go to solution



I want to control a boolean button from main vi and this button will change the indicator in another vi. Actually, my work is about changing languages, when i press the button, front panel lang. is changing, I have also another vi and there is a button too for changing lang. I want to use one button in main vi and the button will change language of the other vi, too. I don't know exactly the subvi structures. I tried several solutions but no result. How can i do this application.


Thanks a lot!

0 Kudos
Message 1 of 6

Hi caki,


use a wire from your main VI button to the connector pane of those subVIs…

Best regards,

using LV2016/2019/2021 on Win10/11+cRIO
0 Kudos
Message 2 of 6

Thanks for reply, i already tried this. When i wire the button to subvi, click the button then I can't do anything on the front panel, so I have to stop vi. 



0 Kudos
Message 3 of 6

Start SubVI asynchronously



and then use something like action engine (what i usually use, but i hear it's not example of good practice anymore) to pass information between main vi and subVI.

0 Kudos
Message 4 of 6

Hi caki,


so you did something to some VIs unknown to us, but you want us to debug your problem?

Why don't you attach your VIs?

Best regards,

using LV2016/2019/2021 on Win10/11+cRIO
0 Kudos
Message 5 of 6
Accepted by topic author cakiroglu

These are the vi's. In main vi I wired sub vi directly to button. It changes graph vi but then freeze, so i have to stop vi. 

Download All
0 Kudos
Message 6 of 6