This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Forcing a SubVI Front Panel to Stay in Front of Other Panels

Updated Mar 1, 2023



  • LabVIEW Full
  • LabVIEW Professional

I am using a top-level VI which calls a subVI. How can I force the subVI front panel to stay at the front of the main VI so that it does not disappear if user clicks on main VI?

There are various methods with which you can achieve this.

  • You can easily force a subVI to stay at the front by using the VI Properties. Completing these steps will keep the front panel on top of all other LabVIEW windows until you close the window or open another modal window. You cannot interact with other windows while a modal window is open. Most dialog boxes in LabVIEW are modal windows, such as the Options dialog window.
    1. Select File >> VI Properties on the front panel of the subVI you want to force to stay at the front.
    2. Select Window Appearance from the drop-down menu.
    3. Click Customize.
    4. Select the Modal radio box under Window Behavior. 
    5. If you do not want to use this window behavior you can still bring your front panel to the front by simply placing a tick next to the Show front panel when called option.
  • You can also do this by right-clicking on the subVI in your top level VI. From the shortcut menu you can then choose SubVI Node Setup...  and then place a tick next to Show front panel when called as demonstrated below.
  • In order to do this programmatically, perform the following steps:
    1. From the function palette, place Programming»File I/O»File Constants»Current VI's Path.
    2. Place Programming»Application Control»Open VI Reference.
    3. Wire the Current VI's Path to the VI path input on the Open VI Reference VI.
    4. Place Programming»Application Control»Property Node and wire the Open VI Reference into the Reference input.
    5. On the Property Node, select Front Panel Window»IsFrontmost as the property.
    6. Right click on the Property Node and select Change All To Write.
    7. Wire a True Constant to the FP.IsFrontmost input.
  • The Show Front Panel On Call Property Node will create the same effect as well.