LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset indicator to zero

Solved!
Go to solution

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

Message Edited by adamkse on 09-03-2009 09:35 PM
0 Kudos
Message 1 of 4
(4,395 Views)
Solution
Accepted by topic author adamkse
Please initialize the feedback node. I think that would do the trick. Could you post the vi here please?
Message 2 of 4
(4,391 Views)

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)


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 4
(4,363 Views)

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

 

 

0 Kudos
Message 4 of 4
(4,360 Views)