Creating a Recursive VI

You can configure a VI to be recursive, meaning the VI can call itself from its own block diagram or from the block diagram of subVIs. Recursive VIs are useful if you want to operate multiple times on the output of the same process.

Complete the following steps to make a VI recursive.

  1. Open the VI you want to make recursive.
  2. Select Shared clone reentrant execution on the Execution page of the VI Properties dialog box.
  3. Call the recursive VI from its own block diagram or from the block diagram of a subVI.
Note Note  LabVIEW allows up to 15,000 recursive calls on 32-bit platforms and up to 35,000 recursive calls on 64-bit platforms. To avoid too many recursive calls, consider calling the recursive VI in a Case structure.