Suspending Execution

Suspend execution of a subVI to edit values of controls and indicators, to control the number of times it 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.

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.

In the Browse»Show VI Hierarchy window, the suspended VI includes a green glyph.

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