The VI you posted will either display a 0 or 1. It will not increment at all with the false constant wired to the loop termination. Replacing the constant with a control, the fail count will increment and when I restart it, the fail count will start over from 0. If all that you're doing is writing to a global, that shouldn't make any difference. It seems like you tried to make an example similar to your actual application but I think you've missed something. Maybe you could post part of the real program so someone could try to see the difference.