View Single Post
  #19   Spotlight this post!  
Unread 18-02-2010, 08:14
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Monitor cRIO CPU level

If the noisy sensors can be made nonnoisy with better wiring or contacts, that is probably preferable. A second option is to use the averaging on the Analog object -- that way it is done by the FPGA and doesn't affect the CPU at all.

If you want something more fancy, you can do the conditioning when read and you probably don't need a thread running in parallel.

If you still use the thread, just make sure to add a delay to it so that it doesn't run hundreds of times faster than needed.

Greg McKaskle