Suspending Execution

Suspend execution of a subVI to edit values of controls and indicators, to control the number of times the subVI runs before returning to the caller, or to go back to the beginning of the execution of the subVI. You can cause all calls to a subVI to start with execution suspended, or you can suspend a specific call to a subVI.

Complete the following steps to suspend all calls to a subVI.

  1. Open the subVI.
  2. Select Operate»Suspend when Called.

The subVI automatically suspends when another VI calls it. If you select this menu item when single-stepping, the subVI does not suspend immediately. The subVI suspends when it is called.

When you select View»VI Hierarchy, a VI configured to suspend when called appears with a green exclamation point (!). A suspended VI appears with a red exclamation point.

Complete the following steps to suspend execution at a specific subVI call.

  1. Right-click the subVI node and select SubVI Node Setup from the shortcut menu. The SubVI Node Setup dialog box appears.
  2. Place a checkmark in the Suspend when called checkbox and click the OK button.

You also can use the Suspend On Call property to suspend a VI programmatically.

After you suspend execution of a subVI, you can perform the following tasks: