Running VIs

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 data types the terminals expect.
  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  Avoid using the Abort Execution button to stop a VI. Either let the VI complete its data flow or design a method to stop the VI programmatically. By doing so, the VI is at a known state. For example, place a button on the front panel that stops the VI when you click it.

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

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