Execution Page (VI Properties Dialog Box)
- Updated2025-01-28
- 5 minute(s) read
Execution Page (VI Properties Dialog Box)
From the front panel or block diagram window of a VI, select File»VI Properties and select Execution from the Category pull-down menu to display this page.
Use this page to set execution properties.
This page includes the following components:
Option | Description |
---|---|
Allow debugging | Allows debugging on this VI. For example, you can set breakpoints, create probes, enable execution highlighting, and single-step through execution. Remove the checkmark from this checkbox to reduce memory requirements and to improve performance slightly. |
Reentrancy | Indicates whether multiple instances of this VI can execute simultaneously. By default, a VI is non-reentrant, so each call to the VI must wait until other calls to the VI finish executing. To allow multiple calls to the VI to execute simultaneously, select one of the reentrant execution options. Note The Reentrancy option must be the same in a parent dynamic dispatch member VI and a child dynamic dispatch member VI.
(FPGA Module) By default, subVIs created under an FPGA target are reentrant.
|
Inline subVI into calling VIs | Specifies whether to inline the subVI into its calling VIs. |
Priority | Determines the priority at which a VI runs in the LabVIEW execution system. Use this control to set the priority of an important VI above the priority of other VIs in the application. If another VI with higher priority calls this VI, the priority of this VI rises to match the priority of the calling VI. The priority of this VI never drops below the level you set in this dialog box. Select subroutine priority to make the LabVIEW execution system run the VI as efficiently as possible. You cannot abort a VI that has subroutine priority. You also can use the Priority property to determine the priority of a VI programmatically.
Note The Priority option must be the same in a parent dynamic dispatch member VI and a child dynamic dispatch member VI. |
Preferred Execution System | Sets the preferred execution system. LabVIEW supports multiple simultaneous execution systems. On some platforms, a VI running in one execution system also can run in the middle of a VI running in another execution system. This allows higher priority tasks, such as data acquisition loops, to interrupt long operations, such as slow calculations. Normally, you set all VIs to run in the same execution system as the caller. To use an alternate execution system for a set of VIs, set the top-level VI to that execution system. All its subVIs also run in that execution system.
Note The Preferred Execution System option must be the same in a parent dynamic dispatch member VI and a child dynamic dispatch member VI. |
Enable automatic error handling | Activates automatic error handling for the block diagram of the current VI. When the VI runs, LabVIEW suspends execution, highlights the subVI or function where the error occurred, and displays an error dialog box. Note The LabVIEW Run-Time Engine does not support automatic error handling. |
Run when opened | Enables a VI to enter run mode and run automatically when you open it. Note
LabVIEW ignores this option in the following scenarios:
Note When a user launches a VI from a disk location other than standard NI installer locations, such as the LabVIEW 20XX or National Instruments\Shared folder, the user will be prompted to choose whether to run the VI or open it in edit mode. |
Suspend when called | Suspends a subVI when called and waits for user interaction. This option is the same as selecting Operate>>Suspend when Called. |
Clear indicators when called | Causes an indicator, such as a graph, to clear each time you call the VI that contains the indicator. For a top-level VI, the indicators clear each time you run the VI. |
Auto handle menus at launch | Causes LabVIEW to automatically handle menu selections when you open and run the VI. If you remove the checkmark from this option, the run-time menu bar is disabled until you can use the Get Menu Selection function to handle menu selections. |
Autopreallocate arrays and strings | (FPGA Module) Optimizes array and string operations. This option forces LabVIEW to preallocate memory at compile time rather than dynamically allocating memory at run time. By default, the FPGA Module displays this option for VIs under FPGA targets in the Project Explorer window. This option must be enabled before you can compile VIs that use arrays or strings for FPGA devices. |