From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Do I Close a Front Panel

It's Late in the day and I am a bit dozey from debugging.

 

I have a VI that conditionaly displays it's front panel. 

It processes a file and if it finds any errors, it opens it's front panel to allow the user to correct them.

When finished, it (should) close the panel and return to the main function

 

I open it using Fopen invoke node but am having trouble closing it afterwards.

 

FClose invoke node doesn't seem to close it and FOpen Activate=false  throws an error.

 

Can anyone tell me the the right invoke/property node to use.

 

 

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
Download All
0 Kudos
Message 1 of 5
(2,712 Views)
You need the FrontPanel.Open property to open and close the window at will.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 5
(2,699 Views)

Tried that, Didn't work for me.

 

I did find a workaround where I hid the panel. 

Not comfortable with it,  as I don't know what happens with memory etc.

 

The VI is a state machine with memory elements.

 

 

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
Download All
0 Kudos
Message 3 of 5
(2,690 Views)

Do not wire the error in. Maybe an error makes the invoke node , not to be executed.

It should work, as it is in the first post

0 Kudos
Message 4 of 5
(2,683 Views)

Hi Timmar,

I agree with Pnt it should work with the FPClose. I tried it on my end and it work just fine. Did you try just using the FPClose without the FPOpen.

Adam H
National Instruments
Applications Engineer
0 Kudos
Message 5 of 5
(2,608 Views)