I'm trying to use a sub-vi that will keep a running array to calculate an average. The first time I call this sub-vi I initialize the arrays to the proper amount of elements. I set it to be reentrant but the data is not retained, all the elements are zero. What am I missing?
I do not see why it needs to be reentrant. A VI containing a while loop that executes once and saves the data in an uninitialized shift register seems more appropriate.
Post your VI with some sample data and someone can probably help you.