LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My front panel doesn't show

Hi,

I have a vi (1) that calls a subvi (2) when I press a button. This subvi (2) calls the vi (1) again when I press another button. I have a event structure for this button (button of the subvi (2) ) where I set to false FP Open property for the vi (1) and then I call by reference this vi (1) and I do an invoke node (run) to show the front panel of it but it doesn't work. Why?

I post an image.

Thanks,

ToNi
0 Kudos
Message 1 of 7
(3,664 Views)
Hi ToNi

Have a look at the documentation for FP.Open. If you don't have any other references to the first vi, it is removed from memory.

Try the property FP.State. This allows you to hide the frontpanel and show it again later. Just have a look at the simple example.

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 7
(3,655 Views)
My problem is:

I want to close the vi(1) in the subvi (2). How Can I close the vi(1) in my subvi(2) if vi(1) has called my subvi(2)? In my subvi(2) I need to close the vi (2) that has called the subvi (2) where I am now, and then, when I close the vi (1), I want to open the vi(1) (front panel) again when I press a button of my subvi(2). How Can I do it?

Thanks,

ToNi.
0 Kudos
Message 3 of 7
(3,638 Views)
Hi ToNi

I attach you another 2 simple solutions. One with the FP.State property and the other using the close function of the vi reference.

The problem using the close function is, that the first vi doesn't open in running mode. Using the function "Open FP" the vi opens, but I can't run it. 😞

This problem is avoidable using the FP.State property.

To run the vi's, vi1.vi and vi2.vi of the close directory must be copied to c: or you have to change the absolute paths in the vi's.

I hope this is what you are looking for and it helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 7
(3,624 Views)
Hi tonitpp,

Call the Property Node (select class as VI Server->VI), with property set to FP.State.

See attached.

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 5 of 7
(3,574 Views)
Hi tonitpp,

Call the Property Node (select class as VI Server->VI), with property set to FP.State.

See attached.

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 6 of 7
(3,575 Views)
Hi becktho,

tch... beat me to it!

well done 😄

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 7 of 7
(3,572 Views)