LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable main program when subvi is running

Solved!
Go to solution

Hi,

 

I have a button ("initialize") on my program that when clicked opens the front panel of a subvi and keeps it at the front of all open windows. I want the subvi to be the only active window until the user exits the subvi front panel. Here is the problem: If the user presses buttons on the vi front panel while the subvi is running, initially nothing happens. When the subvi is closed, it's almost like those user events have been stored and are being carried out. For example, when the subvi is open and I press on the "initialize" button on my vi front panel several times, each time I exit the subvi, the subvi opens again. I don't want this to happen. While the subvi is open, I want the main front panel to be completely disabled.

 

I am quite new to Labview so am unsure what to even search for to solve this problem. I have tried using the property node for the front panel and disabling/graying out the button, but the result is the same. 

 

Thanks,
Pearl

0 Kudos
Message 1 of 2
(576 Views)
Solution
Accepted by topic author jinjupk

Hi jin,

 

set the subVI frontpanel to "modal" so it does not allow to use other frontpanels at the same time…

Best regards,
GerdW


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