04-05-2018 05:34 AM
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?
04-05-2018 05:54 AM
Attach VI Instead of Image files
Check for VI Properties (Close Afterwards when VI is originally closed)
04-05-2018 06:11 AM
Can't debug a picture. Attach the actual VIs and then we can dig into properties, other diagrams that could be causing issues, etc.
04-05-2018 06:14 AM
here is the VIs.
04-05-2018 06:29 AM
It runs just fine for me. Maybe you have something else in your code that you removed for this demo?
04-05-2018 06:33 AM
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.
04-05-2018 06:35 AM
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
04-05-2018 07:38 AM
@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.
04-05-2018 09:31 AM
hmm okay, thanks for checking on my issue. I will try running it again later
04-05-2018 12:15 PM
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.