12-13-2012 10:27 AM
Dear all,
I would like to use a subvi to generate an array for exemple and each time that i am calling it, the indicators in the subvi should not be initialized that means the subvi keep in memory that i have called it before and did not change the previous result in order to use shift register. Is there a way to do it ?
Thanks
regards
12-13-2012 10:33 AM
Yes. You can use shift registers to retain the information. You can also append data to an existing array. The contents will hold as long as it's in memory. Post what you have so far.
12-13-2012 11:02 AM
Specifically use un-initialized shift registers or globally initialized feedback nodes.
And Ben's famous Action Engine Nugget is always a good read. http://forums.ni.com/t5/LabVIEW/Community-Nugget-4-08-2007-Action-Engines/m-p/503801
12-13-2012 11:29 AM
Indicators depend on the result of calculations, so they will ultimately only be the same if the values of controls are the same. Are they?
If the indicators are not immediately updated by the code, they will not be cleared between calls unless "clear indicators when called" is checked in the options of the VI. Check this setting first (VI properties...execution)
If this still confuses you, please show us your code. Sometimes the overuse of local variables can blur the distinction between controls and indicators.