LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sub vi dialog does not close afterwards

hello everyone,
a sub vi dialog is used to display the progress of some testing that my main vi is doing. how is this possible to close this dialog after its progress is complete, that is 100%. i mean i don have to close the window of the sub vi or click any button, once its 100% the dialog gets closed itself but the main vi should still be running.
 
0 Kudos
Message 1 of 4
(3,257 Views)
Go to File>>VI Properties Menu, Select Window appearance from combo. click customize button and check "Close Afterwards if originaaly close" option

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 2 of 4
(3,251 Views)
thanks for ur reply. i think i was unable to explain my problem.
actually the scenario is like this.
 Main vi (Dialog)> Sub vi 1>Sub vi2 (Dialog)
where, Sub vi2 is a sub vi in Sub vi1.
Main Concept: my main vi gives certain inputs to the sub vi1 and the control is transferred to it, now sub vi1 has a while loop which stops wen a certain variable count reaches 100. i wish to show the progress of the while loop of subvi1 using a progress bar for which i have used subvi2 (Dialog).this variable is given to subvi2 within the while loop and subvi2 appears as a dialog continously.
As the Vi Runs:Main vi appears as a dialog, gives input to subvi1 at back end and the progress bar dialog (subvi2) appears.
 now what happens is that sub vi2 dialog does appear and show the progress continously but the window does not get closed after the progress is complete, i have to close it myself. i want it to be programmatically closed once the variable reaches 100.
i have attached an image of vi properties of subvi2.
 
P.S: i want Main vi to be still running so cant use stop or exit functions to close subvi2 programmatically.

Message Edited by Huzach on 06-08-2006 01:58 AM

0 Kudos
Message 3 of 4
(3,241 Views)

Hello Huzach,

I noticed the same behavior even with Close afterwards if originally closed checked.  However after I disabled (unchecked) Allow user to close window, the desired behavior started to occur.  Make sure that Close afterwards if originally closed is checked and Allow user to close window is unchecked in VI Properties.  Also make sure that the subvi has actually stopped execution of all while loops inside of it.  If it is not done executing it will not close automatically.  You can do this by comparing the progress bar to 100 and stopping the while loop that is reading the progress after it gets to 100.

Steven T.

0 Kudos
Message 4 of 4
(3,218 Views)