From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

triggering a signal to only read positive velocity

Im currently designing a system that will calculate linear velocity using a potentiometer. The velocity is multiplied by a force to give power. I only want to take readings when the velocity is positive, i have tried to set up the trigger Vi but it doesnt seem to be working. 

 

To be clear i want to beging measuring velocity at the point when it begings to be positive and stop it when it becomes a negative velocity. I have attached my VI.

0 Kudos
Message 1 of 2
(1,916 Views)

You can't begin measuring velocity until it is positive unless you have already been measuring velocity.

 

The solution is to always do the measurement.  Evaluate it with a >0.  In the true condition, then do whatever it is you want to do.

0 Kudos
Message 2 of 2
(1,915 Views)