View Single Post
  #3   Spotlight this post!  
Unread 25-02-2013, 00:03
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,102
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: Is there a speed sensor input example for Labview?

Quote:
Originally Posted by tr6scott View Post
See my cad pic, Yellow indicating where the reflector tape is mounted.
90 degrees on, 90 degrees off, 90 degrees on, 90 degrees off, as it spins.
Yes, that's clear, thank you. Are you counting only rising edges, or both rising and falling?

Quote:
Originally Posted by tr6scott View Post
We are using the same code that was posted
Are you referring to the code Mark posted? What you are describing is not what he posted. The code he posted is equivalent to the getPeriod() method in the WPILib, which uses the 153KHz sampling and 1μs timer in the FPGA to measure the elapsed time between counts. If you use the code Mark posted, and if you are counting rising and falling edges, and if you have the FPGA sample averaging ring buffer set to 4 samples, you should be getting rock-steady accurate rpm readings.


Attached Thumbnails
Click image for larger version

Name:	3000rpm 4CPR 4N 10ms.png
Views:	46
Size:	9.4 KB
ID:	14177  

Last edited by Ether : 25-02-2013 at 00:41.
Reply With Quote