LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Subvi cannot be closed after loading bar finished

Greetings, 

 

All the screenshotted code has no error and can be run, when I run the main vi.. it will firstly open the splashscreensubvi.png, and after clicking "Get Started" button, the progress bar will load until finish but unfortunately after it finished, the subvi did not close and return back to the main vi. Instead, both vi got stuck. 

 

What did I do wrong in this situation? 

What is the proper way to call and close welcome screen subvi, after running the main vi?

0 Kudos
Message 1 of 15
(752 Views)

Attach VI Instead of Image files

 

Check  for VI Properties (Close Afterwards when VI is originally closed)

Palanivel Thiruvenkadam,
CLA|| CTD
0 Kudos
Message 2 of 15
(740 Views)

Can't debug a picture.  Attach the actual VIs and then we can dig into properties, other diagrams that could be causing issues, etc.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 3 of 15
(731 Views)
0 Kudos
Message 4 of 15
(726 Views)

It runs just fine for me.  Maybe you have something else in your code that you removed for this demo?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 5 of 15
(721 Views)

Nope, I did not remove anything. It is as it is. I tried running those VIs I attached, it still did not work as I wanted.. after the progress bar loaded, the subvi.vi stuck and not returning to the mainvi.

0 Kudos
Message 6 of 15
(716 Views)

when u run the subvi.vi, yes it works fine..both button. But in this case, you have to run from the main vi (UI design)..try that

0 Kudos
Message 7 of 15
(715 Views)

@quadratini26 wrote:

when u run the subvi.vi, yes it works fine..both button. But in this case, you have to run from the main vi (UI design)..try that


I did.  And it the dialog closed after I pressed the GS button and the progress bar filled up.  I then click the Exit button on the main VI and it closed with no issues.  Do note that I did this experiment with LabVIEW 2017.  If I get a chance, I can try with 2016.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 8 of 15
(705 Views)

hmm okay, thanks for checking on my issue. I will try running it again later

0 Kudos
Message 9 of 15
(695 Views)

Just thinking about this again.  Your problem might be that you already had the subVI open before you started running the main VI.  If that is the case, then the subVI will not close since the setting is "Close if previously closed".  You can use an invoke node to close the panel.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 10 of 15
(679 Views)