LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open another front panel

Solved!
Go to solution

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

 

 

0 Kudos
Message 1 of 18
(3,987 Views)

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.

Message 2 of 18
(3,981 Views)

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...

 

 

0 Kudos
Message 3 of 18
(3,953 Views)

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?

diag.JPG

0 Kudos
Message 4 of 18
(3,946 Views)

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.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 5 of 18
(3,943 Views)

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...

0 Kudos
Message 6 of 18
(3,926 Views)

Change your cancel button to a control.

 

Right click Cancel>>Chance to Control

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 7 of 18
(3,923 Views)

If I right click Cancel, the only change option that is listed is to change to indicator...

 

0 Kudos
Message 8 of 18
(3,912 Views)

Then you shouldn't have any issue connecting.  Post your VI with the changes.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 9 of 18
(3,910 Views)

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.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 10 of 18
(3,909 Views)