Front Panel:Open Method

LabView Local Project Settings

Front Panel:Open Method

Short Name: FP.Open

Installed With: Base Package

Class: VI Methods

Opens the front panel window. If the front panel is already open, this method changes the state of the front panel window to the state you wire to this method.

Use the Front Panel:Close method to close the front panel window.

You also can use the Front Panel Window:State property to set the state of a front panel window that is already open.

Example

Parameters

NameRequiredDescription
activateNoIf TRUE (default), the front panel window opens as the active window.
StateNoSets the state in which to open the front panel window.

0Invalid—If you set the input to this value, the method returns an error.
1Standard (default)—Opens the front panel window but does not minimize, maximize, or hide the window.
2Closed—If you set the input to this value, the method returns an error.
3Hidden—Opens the front panel window as floating but not visible. If you set the input 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, on Windows, double-click the VI in Windows Explorer to open the VI.
4Minimized—Opens the front panel window as minimized.
5Maximized—Opens the front panel window as maximized.

Remarks

The following table lists the characteristics of this method.

Available in Run-Time Engine and Real-Time Operating SystemYes (Read/Write)
Settable when the VI is runningYes
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access disallowedNo
Must wait until user interface is idleNo
Available with control VIsYes
Available with global VIsYes
Available with strict type definitionsNo
Available with polymorphic VIsYes

Example

Refer to the FrontPanelStates VI in the labview\examples\viserver directory for an example of using the Front Panel:Open method.

 Open example  Browse related examples