LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating distance from sensor vi

I Get this VI from my earlier answered question, but i have problem when i put a slider to simulate sensor, when i push reset or/and start and slider is between 1-10, distance travelled is 1-10? it should be 0?
if someone can help?
thank you.
0 Kudos
Message 1 of 3
(2,655 Views)
Put the small case structure (reset) after the big case structure(start).

Alternatively, you could simply ensure that the second case is "false" right after reset is pressed. (see attached code image).
Message 2 of 3
(2,637 Views)
Hi Jani!

In response to your last post, I saw the same behavior that you were talking about. I made some modifications to the VI and now it does reset to zero when you press "reset."

I hope this helps!

Take care,
Travis H.

National Instruments
Travis H.
LabVIEW R&D
National Instruments
Message 3 of 3
(2,610 Views)