LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable main vi while executing sub vi

Hi 

 

Can anyone help me to disable the main vi front panel while executing the sub vi ?

 

The vi is attached

 

I want the label 'starting...' and the count down  to be displayed in a separate vi and not along with the main vi.

 

I tried fixing the sub vi properties as specified in 

 

http://digital.ni.com/public.nsf/allkb/5D861C416A55F2208625700600537025

 

but it is not working.

 

 

0 Kudos
Message 1 of 6
(3,737 Views)

You haven't included your subVI, so we don't know what code you call in that. If you want to make the Main VI transparent, you need to include a reference to that VI to the property node that you've linked to above.

 

Do you want to make your Main VI transparent before that inside While loop executed? And then reappear afterwards? Use the code in the link that you gave above to do that before and after the loop.

 

FYI, usually, if you have a subVI popup like you're describing, the While loop that the subVI is looping is inside the subVI, not looping outside the subVI.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 6
(3,734 Views)

If you set the Window Appearance >> Customize... >> Modal the user will not be able to click behind the SubVI. Make sure the SubVI definitely finishes execution though, otherwise the user will never be able to get back to the main application.

Message 3 of 6
(3,729 Views)

@Gregory wrote:

If you set the Window Appearance >> Customize... >> Modal the user will not be able to click behind the SubVI. Make sure the SubVI definitely finishes execution though, otherwise the user will never be able to get back to the main application.


I usually select the "Dialog" preset and then go to customize and change anything I don't like about it.  Which is pretty much exactly what you said, but done at a "higher" level.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 6
(3,717 Views)

Duplicate post!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(3,709 Views)

Seems like this is my day to respond to useless posts.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 6
(3,678 Views)