Current state of the front panel window.

A state of

Standard
or
Maximized
indicates that the front panel window is visible to the user.

If you attempt to set this property for a front panel window that is not open, the property returns an error.

If you load the VI in a subpanel control, this property is read only and always returns a value of

Hidden
.

You also can use the Front Panel:Open method to set the state of the front panel window when you display it.

Remarks

The following table lists the characteristics of this property.

Short Name FP.State
Data type cenum.png
Permissions Read/Write
Available in Run-Time Engine Yes
Available in Real-Time Operating System Yes
Settable when the VI is running Yes
Loads the front panel into memory No
Need to authenticate before use No
Loads the block diagram into memory No
Remote access allowed Yes
Must wait until user interface is idle No
Available with control VIs Yes
Available with global VIs Yes
Available with strict type definitions No
Available with polymorphic VIs Yes
Invalid 0
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.
Standard 1
The front panel window is open but is not minimized, maximized, or hidden.
Closed 2
The front panel window is not open. If you set the property to this value, the property returns an error.
Hidden 3
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.
Minimized 4
The front panel window is minimized.
Maximized 5
The front panel window is maximized.

Examples

Refer to the following example files included with LabVIEW.

  • labview\examples\Application Control\VI Server\VI Properties\VI Properties - Front Panel States.vi