Recursion: Difference between revisions
Started page |
mNo edit summary |
||
Line 3: | Line 3: | ||
== Configuration == | == Configuration == | ||
To make a [[VI]] allowed to call itself as a [[SubVI]] it must be set to [[Reentrancy|reentrant]] | To make a [[VI]] allowed to call itself as a [[SubVI]] it must be set to [[Reentrancy|reentrant]]. To set a [[VI]] to [[Reentrancy|reentrant]]: | ||
# Open the [[VI Properties dialog]] | |||
# Click on the '''Category->Execution''' | |||
# Under '''Reentrancy''' radio buttons, select the '''Shared clone reentrant execution''' | |||
# Then click '''OK''' | |||
The [[VI]] is now set to [[Reentrancy|reentrant]]. To use, simply drag the [[VI Icon]] to the VI's [[Block Diagram]]. | |||
== Uses == | == Uses == | ||
=== Mathematics === | |||
=== Search Tree === | |||
=== Hierarchal Data === | |||
== See Also == | == See Also == | ||
* [[Recursion redirect|Recursion]] | * [[Recursion redirect|Recursion]] | ||
[[Category:Intermediate Design Patterns]] |
Revision as of 14:42, 16 June 2020
This page is under construction. This page or section is currently in the middle of an expansion or major revamping. However, you are welcome to assist in its construction by editing it as well. Please view the edit history should you wish to contact the person who placed this template. If this article has not been edited in several days please remove this template. Please don't delete this page unless the page hasn't been edited in several days. While actively editing, consider adding {{inuse}} to reduce edit conflicts. |
Recursion in computer science is defined as a function that includes itself as part of its definition. This means that a function calls itself as part of its execution. In LabVIEW this simply means a VI calls itself as a SubVI.
Configuration
To make a VI allowed to call itself as a SubVI it must be set to reentrant. To set a VI to reentrant:
- Open the VI Properties dialog
- Click on the Category->Execution
- Under Reentrancy radio buttons, select the Shared clone reentrant execution
- Then click OK
The VI is now set to reentrant. To use, simply drag the VI Icon to the VI's Block Diagram.