I'm creating a VI that will store the last n values of a waveform, and plot it on an XY graph, and in order to make it work properly, I need it to initialize the arrays on the first iteration. At present, it keeps an integer (via shift registers) around, and goes to the initialize case on the first time, when the register contains the default 0. However, the incremented value stays around even after the VI has run to completion: if I restart it, it doesn't work a second time. I can fix this with right-click -> Replace... with another copy of the same, so I'm pretty sure it's a matter of the register not going out of scope.
Is there any way to specify that it should, or am I stuck with "It either keeps the value 'til LabVIEW i
s closed, or it doesn't?"
~Dan