01-14-2019 10:36 AM - edited 01-14-2019 10:51 AM
I'm trying to get this counter to work without an indicator. How do I do it
01-14-2019 10:57 AM
Use a Shift Register to hold the counter value.
01-14-2019 11:25 AM - edited 01-14-2019 11:49 AM
(I am not sure why you call this thread "static Values". A value that is incremented or decremented is not static, right? If there is more to the question, try to spell it all out. What should it be used for?)
How would you know what the value is if there is no indicator? If the output is never used, the LabVIEW compiler might even eliminate all code as dead code.
As a first step, try rewriting the code without any local variables. Also remember that there is a +1 and -1 primitive. You also need an event for the stop button. Your numerics should also be blue when dealing with integers.
Here's how it could look like. Only one event frame is needed. The min&max keeps it nonnegative.
Of course you could just use a numeric control. They have increment/decrement buttons built in. You can define the valid range (e.g. non-negative) using the "data entry ..." feature. 😄