LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[user interface] stop button problem

Hello,
 
I want to make an user interface with 2 panels ( a menu and an application): the first allows the user to choose to excute a vi. When he clicks on an OK button, I want to call the second panel. On the second panel, there is a STOP button. When he clicks on this STOP button, I want to close the second panel and open again the first panel (menu).
I am able to call the second panel, but not to close it and call the first again. Can you help me?
 
Cordially,
 
BD
~ La programmeuse compile le C. ~
http://www.pmeonline.fr.st
http://www.nihon-fr.com
http://www.cinemasie.com
http://ippai.free.fr
0 Kudos
Message 1 of 4
(2,552 Views)

Hi

Have a look at this thread http://forums.ni.com/ni/board/message?board.id=170&message.id=146807#M146807. Maybe this helps you.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 4
(2,538 Views)
 
 
My suggestion is similiar to what Thomas has suggested but with a tweak to make it fit into what you want ( I think)
 
I suggest that you pass the vi reference of your front panel of your main vi. In my case this is First Panel.vi. This reference is used by the subvi Second Panel.vi. Second Panel.vi has been set to Run When Opened and Close Afterwards if orginally closed through VI Properties->Window Appearance. The subvi then uses an invoke node to manipulate the First Panel using Open FP method. You can you this method to hide your first panel then show just before you close the Second Panel.
 
My apologies, I can only supply code in 7.1.
 
Hopefully this will help too.
 
regards
 
David
Message 3 of 4
(2,529 Views)

Hi again,

Thank you both for your help, your advices are very usefull. I will use your method Mr Crawford.

BD

~ La programmeuse compile le C. ~
http://www.pmeonline.fr.st
http://www.nihon-fr.com
http://www.cinemasie.com
http://ippai.free.fr
Message 4 of 4
(2,523 Views)