View Single Post
  #20   Spotlight this post!  
Unread 19-06-2014, 13:34
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,091
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Encoder rate noise

Quote:
Originally Posted by Joe Hershberger View Post
For the cRIO, that means if A and B channels both change within a single 6.525 us sampling period on the DIO module, that the count will fail.
...because you can't tell which edge came first, so you don't know the direction.

Quote:
Of course if you are running anywhere near the digital I/O sampling rate, then the FPGA's built-in rate calculations are so noisy that they are practically useless.
Unless you setup the FPGA to do averaging over a large enough sample size?

Quote:
You can very accurately get the counts in a fixed time period by using the DMA feature of the FPGA to send the encoder count value at exact intervals measured by the FPGA.
Are there code examples how to do this in all 3 supported languages?



Last edited by Ether : 19-06-2014 at 13:43.
Reply With Quote