I tried to make counter that increase distance, each time i press a button. Distance should increase by a value I give with numeric control(eg.20m) The problem is that I want the loop return Zero(0) by a first press of button and then increase number by a num indicator. Attached vi gives a glue what I mean.
The easiest way to do this is to put your counter in a while loop and use a shift register. Increment the register by (20m) every time your button is pressed, Zero it every time another button is pressed. The while loop runs very fast so you may need to use properties node to cancel the button at the begining of the loop or it will cout many times per press! What version LabView you have?
I have 7. I can do the loop that increses the value but the problem is that I want a zero out at first round. I am arraying values to graph and a table. I have a button which does other things(saving)at the same press. Values are demonstrating measuring points.
Your vi was allmost exactly what I needed. Only thing I had to change was the Distance inside the so that I can change the distance between measurements.
Good solution nirmal. If you want to take out the time delay of 500ms, you can put your increment button on a shift register. Compare the register with the button and only increment when they are different. I changed the OK button to switch when pressed.