01-31-2008 07:48 PM
01-31-2008 08:25 PM
02-01-2008 10:27 AM
altenbach ,
Thanks for your suggestions, the code works great!
In regard to shift registers, do they suppose to reset everytime a vi is re-started after completing execution (main vi)? or do they suppose keep the last number in memory even though a vi has been terminated or exited (main vi)? I tought that labview will clear or release all memory allocated to local variables, shift registers, etc after completing execution of a vi (main or top vi).
Thanks again,
Frank
02-01-2008 10:58 AM
Fvalenzu wrote:
I tought that labview will clear or release all memory allocated to local variables, shift registers, etc after completing execution of a vi (main or top vi).
02-01-2008 11:16 AM
altenbach,
Thanks again for your input . . . and I just wonder if there is a way to call the main vi multiple times on a top vi and still get only 10 numbers to be displayed on the top vi's graph. The reason is that I am calling the main vi multiple times in my program.
Please see attached vi. Thanks,
Frank
02-01-2008 12:35 PM - edited 02-01-2008 12:35 PM
Yes, LabVIEW has all the tools to do whatever you want. 🙂
In this case you could e.g. add an extra boolean input to the subVI that lets you reset the feedback node any time you want. In this case you would reset whenever i=0 as shown in the following image (top is the code if the inner subVI and the botton image shows how you would call it).

02-01-2008 01:31 PM