I want a VI that would increment a counter every time a boolean gives a true value. In other words, every time a switch is pressed, the counter should increment to the next whole number and so on.
已解决! 转到解答。
I am new to LabVIEW and just have a basic knowledge of it. Although i'm aware of shift register, im not accustomed to event structure... im enclosing a rough idea i made to vi..
i dont think this works, let me look up event structure
set mechanical action of your button to switch until release, if you want yor increment is every click is increment by 1
i liked the idea of event structure, implemented it with some local variables .. it works fine
thanks for your support, i used event structure and local variables and implemented this application which increments the counter when swittch 1 is pressed and decrements the counter when switch 2 is pressed, and glows a light when the value of the counter is greater than 0.