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: 

using usb 6501 to track the position of 6 different stepper motors

yes that gets it to read the digital signal, but then how do I detect the change in direction?

0 Kudos
Message 11 of 12
(707 Views)

Save array from previous iteration into shift register. Detect change - it will give you position.

Angular encoders usually have 90 degrees phase shift between 2 channels. So if value change is positive (rising slope) on one channel and second channel is 1, then it is rotating clockwise. Similar with other 3 cases. Look at your signals with 2 channel scope (or at LabVIEW chart) to check it is the case for your encoder. Arrays are small it will not take time to process them, it can be done on the fly.

0 Kudos
Message 12 of 12
(693 Views)