08-17-2012 04:52 AM
Hi guys,
Quick but perhaps extreme stupid question. I've got a rather large VI with several subVI's. Inside those subVI's there are some for-loops which do not seem to reset whenever the subVI is called upon. Whilst doing the data analysis it basically accumulates the data from the previous file as well. For example:
file A gives 4 variable outcomes out of the subVI's for-loop
file B gives 5 variable outcomes out of the subVI's for-loop
Not this will show up in the final array as having 9-outcomes, and not 5 which I would expect.
I have been playing around with deleting the points of interest, but I was wondering if there was an easier option?
ta
Patrick
Solved! Go to Solution.
08-17-2012 05:37 AM
Without seeing any of your sub vi, I can only guess that you're building an array in a loop with an uninitialized shift register.
08-17-2012 05:43 AM
Instead I've been setting it up along these lines:
And for some unexplained reason this does not reset the initial empty array to which the new values (obviously in the above case without analysis) are being added to the output array... I just don't get what I'm doing wrong?
08-17-2012 06:18 AM
The loopback node's initialize works like a First call, and since it's still in memory it's only reset once.
(correct me if i'm wrong)
/Y
08-17-2012 07:06 AM - edited 08-17-2012 07:10 AM
@Yamaeda wrote:
The loopback node's initialize works like a First call, and since it's still in memory it's only reset once.
(correct me if i'm wrong)
/Y
You're correct (and so was I).
08-17-2012 07:11 AM
Thanks Guys, I'll give it a make-over!