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.
05-15-2010 05:37 AM
In my application, I don't want display all waveform chart in the main window.
Instead I would like to define a real time menu and, when a new menu selection is done, a new window containing the waveform chart will be opened.
This purpose is to keep the main window neat and the user has a choice whether he wants to display the waveform chart.
Thank you for the advices.
05-15-2010 06:13 AM
05-15-2010 06:59 AM
Also set the subVI WIndow Appearance properties.
05-15-2010 08:31 AM
05-15-2010 09:06 AM
05-15-2010 10:32 AM - edited 05-15-2010 10:34 AM
Hi, all, I managed to get a sample program as attached.
It can work that a new window will be opened when "display" on the run time menu is clicked. However, your help is greatly appreciated:
1) Is my method efficient and are there better ways to do this?
2) In this case, I cannot close the popup window. Is there a solution that I can close the new window?
Thank you very much for your help!
05-15-2010 06:11 PM
I think you want the data display subVI to run in a separate loop. If you call it like that in the main loop it will halt the execution of your main loop. Is that what you want? You could try Producer/Consumer architecture.
Place a while loop into your subVI and give the user the ability to Stop the subVI. Make the Window Appearance properties Show Front Panel When Called and Close Afterwards if Originally Closed.
Open the LV Example Finder and search for example "Semaphore with SubVIs".