Running VIs
- Updated2026-02-27
- 3 minute(s) read
Running a VI executes the operation for which you designed the VI. You can run a properly wired VI from the block diagram, from the Project Explorer, or programmatically.
Before you can run a VI, you must wire all the subVIs, functions, and structures in the VI with the correct data types for the terminals.
You can run a VI if the Run button on the toolbar appears as a solid white arrow:
The solid white arrow also indicates you can use the VI as a subVI if you create a connector pane for the VI.
To run a VI, use the following approaches:
-
Run a VI interactively from the block diagram or the front panel:
- Wire all the subVIs, functions, and structures with the correct data types for the terminal on the block diagram.
- Depending on how you want to run the VI, choose an option in the toolbar:
Option Description Run the VI once Click the Run button, 
The VI stops when the VI completes its data flow.
Available from the front panel and the block diagram.
Run the VI continuously Click the Run Continuously button, 
The VI runs continuously until you stop it manually.
Available from the front panel and the block diagram.
Runs the VI in incremental steps Click the single-stepping buttons, 
This approach is useful for debugging a VI.
Available from only the block diagram.
-
Run a VI interactively from a LabVIEW Project:
-
Create a new project or open an existing project.
The Project Explorer window appears.
- Right-click a VI in the Project Explorer window.
- Select Run from the shortcut menu.
The VI front panel opens in run mode. -
Create a new project or open an existing project.
- Run a VI programmatically using either of the following approaches:
) to indicate that the VI is running.
) stops a VI immediately, before the VI finishes the current iteration. Aborting a
VI that uses external resources, such as external hardware, might leave the resources in an
unknown state by not resetting or releasing them properly. To avoid this problem, design VIs
with a stop button that safely releases resources.Configuring How a VI Runs
You can configure settings that determine how a VI runs.
For example, you can do the following:
- Configure the VI to run immediately when it opens
- Configure the VI to pause when called as a subVI
- Configure the VI to run at different priorities if, for
example, it is crucial for the VI to run without waiting for another operation
to completeNote Incorrectly configuring a VI to run at different priorities can cause unexpected execution. You do not need to configure most VIs to run at different priorities.
- Set reentrancy settings
To configure execution settings for a VI, complete the following steps.
- Open the VI.
- In the menu bar, select .
- In the Category pull-down menu, select Execution.
- Change the settings.