From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-08-2014 11:31 AM
I'm trying to set up a pop-up help directory for one of my programs. This is the first time I've tried an asynchronous call and I can't seem to get it to work correctly.
The attached HelpDir.vi is the parent program that gives the user different help files to choose from. When the user selects a help file, its subvi should pop up. I would like the user to be able to leave this help file up and close out the help directory or choose another help file to pull upsimulataneously if they wish.
The odd thing is that, currently, this vi works exactly as I want if I have highlight execution on, but running normally, the HelpDir.vi becomes unresponsive when one of the help files has been loaded and only becomes responsive again once the help file has been exited.
I set up the parent program with an event structure running asynchronous call-and-forget just as in the shipping example so I'm not sure why the parent program isn't recovering control after launching tyhe subvi. Please take a look and let me know if you see what I'm missing.
P.S. You might have to update the two static references. I'm not sure if they break when sending the code this way.
Thanks,
Tim
Solved! Go to Solution.
12-08-2014 11:51 AM
Change your dialogs to be Floating instead of Modal. The modal windows will always be on top. By changing it to Floating, then you can access your main VI's window as well.
The Highlight Execution must somehow override the modal window mess.
12-08-2014 12:31 PM
You may also want to detect if the VI is already open and running, and ignore the button press. I found that if you click the button of a subVI that is already open, it doesn't seem to do anything. But you have to click the continue button in that subVI multiple times (once for each time you clicked the button in themain VI) in order for it to stop running.
12-09-2014 07:42 AM
Thanks so much crossrulz and Ravens. I'm away from my LabVIEW today, but I'll give this a try tomorrow. The floating/modal window thing makes sense so I'm hopeful that will fix it.
Good thinking about checking for it already open. I had noticed in playing around with it that if you clicked the button multiple times to load the subvi, it seems to queue the calls so when you close the first instance, it immediately opens the next.
12-10-2014 03:12 PM
Thanks guys! It works beautifully now using floating windows.
-Tim