Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Running VIs

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Running a VI executes the operation for which you designed the VI. 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.

Complete the following steps to run a VI.

  1. Wire all the subVIs, functions, and structures with the correct data types for the terminal.
  2. Click the Run or Run Continuously buttons or the single-stepping buttons on the block diagram toolbar. Clicking the Run button runs the VI once. The VI stops when the VI completes its data flow. Clicking the Run Continuously button runs the VI continuously until you stop it manually. Clicking the single-stepping buttons runs the VI in incremental steps.
Note  The Abort Execution button stops the 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. Design VIs with a stop button to avoid this problem.

You can configure how a VI runs by selecting File»VI Properties and selecting Execution from the Category pull-down menu.

You also can run a VI from a LabVIEW Project. In the Project Explorer window, right-click a VI and select Run from the shortcut menu. The VI front panel opens in run mode.

You also can use the Run VI method to run VIs programmatically.


 Was this document helpful?  submit
  Helpful Not Helpful