04-30-2012 03:06 PM
I would like to have a vi with a front panel with buttons.
One of the buttons I would like to display the front panel of another vi and execute that vi until the cancel button is pressed and
then I wish to close this 2nd front panel and continue running off the initial front panel.
I see that there are a couple examples on here but I can't view these because I am stuck with an old version of LV v8.2 until I can
get the company to spring for an update. Also, I start my lv training in a couple of weeks but need to get this finished long beofre then...
I have included a copy of the vi that I wish to launch but I am not sure how to launch it from the button on a main front panel.
I appreciate any help that anyone can offer
thanks
Solved! Go to Solution.
04-30-2012 03:46 PM
Help>Find Examples>Building User Interfaces>Designing Dialog Boxes>Dialog Box Demo.vi and look at the block diagram of the subVI for instructions.
A basic fault in your subVI is that you have no way to pass parameters from/to the subVI since you do not have anything wired to the connector pane. There are on-line tutorials that you should take.
05-01-2012 08:59 AM
Thanks Dennis-
I know that I need to convert the vi that I posted into a subvi and I have been reading
about creating a connector pane but the Labview info that I have viewed so far describes
how to select a connection pane doesn't show "how to select a connector pane".
Is this in one of the tool boxes? The connection pane doesn't even come up in the labview
help when I attempt to locate this...
05-01-2012 09:56 AM
OK, I got the connector pane created and tied the cancel button to it but this is an input
and I can't use it to end the while of when the front panel of this subvi will be displayed.
Is there an easy way to tie the cancel button input into a node that I can use to terminate the while loop?
05-01-2012 10:03 AM
Yep, the class would be good for you. Don't worry, this kind of confusion is normal for newbies and is to be expected. You need to wire your cancel button inside the whille loop (tied to your conditional terminal) and change the conditional terminal to Stop if True.
05-01-2012 12:22 PM
I tried wiring the cancel button to the condition of the while loop but it is telling me
that the cancel button is an input and it will not connect...
05-01-2012 12:27 PM
Change your cancel button to a control.
Right click Cancel>>Chance to Control
05-01-2012 02:56 PM
If I right click Cancel, the only change option that is listed is to change to indicator...
05-01-2012 02:58 PM
Then you shouldn't have any issue connecting. Post your VI with the changes.
05-01-2012 03:00 PM - edited 05-01-2012 03:06 PM
Oops! I took another look at your VI. Why do you have a cancel button embedded within your VI? That is correct, it is an indicator. I don't know what your sub-VI looks like, but use your Cancel button (as a control) to exit your sub-VI (close). You can then pass the boolean to your top-level conditional terminal.