11-07-2011 12:26 PM
Is there a way to call the front panel of a sub.vi so that as soon as the sub.vi begins to execute, its front panel is displayed?
Solved! Go to Solution.
11-07-2011 01:07 PM
http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/vi_open_front_panel/
Or, you can configure the VI to open its front panel when called via the VI Properties.
All explained in the LabVIEW Help.
11-07-2011 01:21 PM
That link you posted... is that a function I can find from the block diagram somewhere? I'm looking for it but can't seem to find it (also I am running a pretty old labVIEW 8.5) and I have no clue what the "VI methods" class is. The settings in VI properties will probably be fine, but I can't find it either, (there are 12 menu tabs, after all) and it probably isn't labeled as obviously as "open front panel when run." My guess is under "execution," maybe the run when opened selection?
11-07-2011 01:27 PM
So I found my own way to call the front panel by accident.
Right click on the sub.vi's icon on the block diagram
Click SubVI Node Setup
Check the box that says "Show front panel when called"
(and also the box saying close afterwards if originally closed if you so choose)
11-07-2011 01:28 PM - edited 11-07-2011 01:31 PM
@LarsUlrich wrote:
That link you posted... is that a function I can find from the block diagram somewhere? I'm looking for it but can't seem to find it (also I am running a pretty old labVIEW 8.5) and I have no clue what the "VI methods" class is.
It's a method for a VI reference. You create a reference to a VI (for example, by using the Open VI Reference function), and then connect it to an invoke node. Select the method from the popup list.
The settings in VI properties will probably be fine, but I can't find it either, (there are 12 menu tabs, after all) and it probably isn't labeled as obviously as "open front panel when run." My guess is under "execution," maybe the run when opened selection?
VI Properties -> Window Appearance -> Customize.
EDIT: The method you used applies only to that instance of the subVI. If you have the subVI in several places on your block diagram, then the other instances are not affected. This would be applicable if your subVI is an information dialog or something.
11-07-2011 01:36 PM
Awesome, thanks for the tips. My sub.vis are only called once in the main .vi so in that case it won't matter, but that is good to know.