09-03-2009 03:34 PM - edited 09-03-2009 03:35 PM
Hi all. I have tried to make a counter and it seems to work but i can not get it to reset after the program has run, it holds the previous value in memory. I have tried using variables, shift registers and property nodes but i cant quite get it. Can some one tell me what I should do?
Thanks
Solved! Go to Solution.
09-03-2009 03:36 PM
09-03-2009 04:55 PM
Exactly.
The feedback node is a lot like a shift register. If you do not initialize them they are DESIGNED to maintain the last value even between calls. Its very common to use USRs (uninitialized shift registers) as a functional global variable (AKA LV2 global)
09-03-2009 04:58 PM
Thanks man that sorted it out, cant believe I never saw this.
I didnt post the whole vi because other people are trying to do the same thing, i am finished now that this error is sorted but didnt want anyone to see.
Thanks again