Front Panel:Open Method

Short Name: FP.Open

Requires: Base Development System

Class: VI Methods

To Use: Create a method.

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

Data typeNameRequiredDescription
ActivateNoIf FALSE (default), the front panel window does not open as the active window. If TRUE, 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.

Data typeNo return value
Available in Run-Time EngineYes (Read/Write)
Available in Real-Time Operating SystemYes
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 allowedYes
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 VI Properties - Front Panel States VI in the labview\examples\Application Control\VI Server\VI Properties directory for an example of using the Front Panel:Open method.

 Open example  Find related examples