LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the replacement for "Front Panel Window > Open" form LV 2012?

VI property "Front Panel Window > Open" is deprecated in LV 2012, it was not in LV2011. So to ensure compatibility with futur versions what are we supposed to use as a replacement?

Thanks in advance


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 1 of 7
(8,855 Views)

There is a VI method called FP.Open that is the NI preferred means of controlling front panel display state.

Nate Moehring

SDG
0 Kudos
Message 2 of 7
(5,202 Views)

And the flip side is the FP.Close method.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 7
(5,202 Views)

Sure, and these 2 methods aren't new but they only replace the "write", not the "read".

How am I supposed to do if I want to know if a VI's FP is opened or not?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 7
(5,202 Views)

FP.State property

Nate Moehring

SDG
Message 5 of 7
(5,202 Views)

Right, that seems to be the one I was looking for.

Cheers


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 7
(5,202 Views)

FP.State

Front Panel Window Property Seems to work perfect for this operation.

http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/vi_fp_winstate/

This returns following values:

0 Invalid—If you read this property and an error occurs, the property returns this value. If you set the property to this value, the property returns an error.
1 Standard—The front panel window is open but is not minimized, maximized, or hidden.
2 Closed—The front panel window is not open. If you set the property to this value, the property returns an error.
3 Hidden—The front panel window is hidden. If you set the property to this value and close all references to the front panel, the window remains open but hidden. Because the VI is open, the Getting Started window does not appear. To solve this problem, open the VI from the operating system. For example, double-click the VI in Windows Explorer to open the VI.
4 Minimized—The front panel window is minimized.
5 Maximized—The front panel window is maximized.
157+ CLDs & 9 CLA Trained
LabVIEW Training resources
0 Kudos
Message 7 of 7
(4,603 Views)