The following example text demonstrates the contents of a text file that contains exported VI strings. Refer to exporting the VI strings for more information about exporting VI strings.
<VI syntaxVersion=11 LVversion=8508002 revision=13 name="Demo Recursion.vi">
<TITLE><NO_TITLE name="Demo Recursion.vi"></TITLE>
<HELP_PATH></HELP_PATH>
<HELP_TAG></HELP_TAG>
<RTM_PATH type="default"></RTM_PATH>
<DESC>This demo shows how you can create a recursive VI in LabVIEW. Recursion is when a VI uses itself on its own block diagram. Such functionality is useful when implementing VIs to solve problems of the form F(n) = F(n-1) + G(), where the functions may be arbitrarily complex and more direct iterative methods may not be easy to implement. </DESC>
<CONTENT>
<GROUPER>
<PARTS>
</PARTS></GROUPER>
<CONTROL ID=80 type="Numeric" name="How many times to recurse?">
<DESC></DESC>
<TIP></TIP>
<PARTS>
<PART ID=82 order=0 type="Caption"><LABEL><STEXT>How many times to recurse?</STEXT></LABEL></PART>
</PARTS>
</CONTROL>
<CONTROL ID=81 type="String" name="Resulting String">
<DESC></DESC>
<TIP></TIP>
<PARTS>
<PART ID=11 order=0 type="Text"><LABEL><STEXT></STEXT></LABEL></PART>
<PART ID=82 order=0 type="Caption"><LABEL><STEXT>Resulting String</STEXT></LABEL></PART>
</PARTS>
<DEFAULT><SAME_AS_LABEL></DEFAULT>
</CONTROL>
<LABEL><STEXT>This demo uses recursion -- that is, a VI that calls itself on its own block diagram -- to build a string of numbers. The task itself is trivial and could be easily achieved without using recursion, but the demo will let you see the details of recursion which may be useful for solving harder problems.<LF>
<LF>
<FONT style='B'>Instructions:<FONT predef=APPFONT><LF>
1. Select the number of times that the demo should recurse.<LF>
2. Run VI.<LF>
3. The output will be a string of numbers starting at zero and going up to your input number.<LF>
<LF>
Details on how the recursion works may be found on the block diagrams of this VI and its subVIs.</STEXT></LABEL>
</CONTENT>
<BDCONTENT>
<LABEL><STEXT>Look in here.</STEXT></LABEL>
<NODE ID=49 type="SubVI" subVIName="Read String.vi">
<DESC></DESC>
</NODE>
<DESC></DESC>
<TIP></TIP>
<PARTS>
</PARTS>
<NODE ID=260 type="Object Method SubVI" subVIName="Recurse.vi">
<DESC></DESC>
</NODE>
</BDCONTENT>
</VI>