Configuring LabVIEW Application Window to Always Be on Top

Updated Jan 10, 2018

Reported In

Software

  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional

Issue Details

Is there a way to make a LabVIEW Application modal, or floating, within the Windows environment so that it will always be the top-level window, yet I can still work with my other applications?

Solution

To ensure the LabVIEW Application Window remains the top-level window while still having the ability to work with other applications, use the VI Server and enable the Front Panel to be the front window. The VI Server can configured to make the VI's Front Panel the top-level window by:

1. Place a VI Server Reference on the Block Diagram. A VI Server Reference can be found by right-clicking on the Block Diagram and navigating on the Functions Palette to Programming»Application Control»VI Server Reference.

2. Wire the output of the VI Server Reference to a Property Node. Property Nodes can be found in the same location as the VI Server Reference.

3. Ensure properties can be set with the Property Node by right-clicking on the Property Node and selecting Change All to Write.

4. Select Front Panel Window»Is Frontmost and wire a true constant into the FP.IsFrontmost input terminal.

Additional Information

In LabVIEW 8.6.1 and earlier on Windows 32-bit systems, the Windows API Function Utilities for LabVIEW can be used to make a LabVIEW application modal. The link to this API is included in the Related Links.

WAS THIS ARTICLE HELPFUL?

Not Helpful