Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67020

Detect rotation direction from 2 pulse train

$
0
0

Hi,

I need to calculate the rotation direction from 2 pulsetrain that are 90° phase from each other.

Its 24V signals (high) and im using NI9423 on a cRIO-9047.

 

Somehow i need to decide which one of the pulse train that goes high before the other, and also the opposite for the other direction.

If someone can provide some example code it would be much appreciated.

 

After the calculation i need to set a boolean to TRUE if it goes to the right and FALSE if it goes to the left.


Viewing all articles
Browse latest Browse all 67020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>