01-24-2014 09:30 AM
I have a main VI and a sub VI. The sub vi front panel is opened when it is called and the main VI is updated. But I need to automatically return to the main VI front panel after running the subvi
01-24-2014 09:36 AM
Set your subVI as "Dialog" in the VI settings.
Make sure that the front panel of the subVI is closed before calling it, otherwise, it will stay open (refers to development phase).
Norbert
01-24-2014 09:40 AM
The subVI front panels do not open when called.
01-24-2014 09:42 AM - edited 01-24-2014 09:46 AM
@paul_cardinale wrote:
The subVI front panels do not open when called.
Oh, they do....if you configure that to happen.
Setting the VI as Dialog (as mentioned before) is the simplest way to achieve this.
Norbert
EDIT: Looking into the attached code in the initial post, i don't see any purpose in displaying either of the "subVIs" as dialog. None of them contain code waiting for user input or encouraging the user to interact with the front panel.
Despite that, the code and interfaces should be reworked to match common development style guides (e.g. gray scale colors).
01-24-2014 01:06 PM - edited 01-24-2014 04:18 PM
@Norbert_B wrote:
Despite that, the code and interfaces should be reworked to match common development style guides (e.g. gray scale colors).
Agreed!
01-24-2014 02:48 PM
No. They don't. They 'would' if they were so configured.