LabVIEW Windows Locked When Calling VIs Using the Run VI Method

Updated Nov 21, 2023

Reported In

Software

  • LabVIEW

Issue Details

I am using the Open VI Reference and Run VI method to call and execute a secondary VI. I want to be able to interact with both the caller and the calling VI, however whenever the calling VI is executing, is not possible to move, minimize, click on buttons, or interact in any way with any other LabVIEW window until its execution is stopped.

If I activate Highlight Execution in the Calling VI before it is called this issue doesn't happen. What can I do to avoid this?

 

Solution

This behavior can be seen if the calling VI has Dialog selected on the Window Appearance page of the VI Properties dialog box. With this option the calling VI will function as a dialog box in the operating system, so the user cannot interact with other LabVIEW windows while this VI window is open. When highlight execution is active the windows will not be locked, as it needs to allow for interaction with the block diagram for its proper use.

In order to avoid this behavior you would need to use another option in the Windows Appearance page. You can also customize it and select either Default or Float in the Window Behavior options:
 
image.png
 
The Modal option keeps the front panel of the VI on top of all other LabVIEW windows and you cannot interact with them while the modal window is open.