View Single Post
  #2   Spotlight this post!  
Unread 16-01-2013, 11:46
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: RPM control system

The WPI Library in the Functions Palette contains some vi(s) specific to the Counter functions built-in to the Crio's FPGA. One of the outputs of the Get Counter VI is the period between input pulses. Use that output to calculate the RPM value. See some of the example code for how to use the counter.

The Crio's FPGA takes a lot of the processing load off of the on-board computer so you don't have to try to do it all in software.
Reply With Quote