Go to Post Maybe there's some reason that makes it not that simple... - Cory [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-12-2013, 13:42
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
CRIO 9201 Analog Sampling Rate & Averaging

Hi Folks,

I've got a few questions that I could use a little clarification with.

I was looking at the Analog Open.VI and I believe I see it setting the sampling rate to 50K for all 8 of the channels by default. Is this correct or I am misunderstanding it?

There are VI's to change the sampling rates, set oversampling and averaging bits, however, I don't see anywhere a simple averaging of samples.

If I'm sampling at 50K I believe you could easily average every 100 samples to obtain a steadier signal at the expense of some lag.

Is there sample averaging being done by the FPGA that I'm not seeing? If so can someone tell me what it is? Is there something I'm missing that allows me to configure this?

Thanks,
Michael
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


Reply With Quote
  #2   Spotlight this post!  
Unread 28-12-2013, 14:09
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,558
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: CRIO 9201 Analog Sampling Rate & Averaging

Quote:
Originally Posted by Phalanx View Post
I was looking at the Analog Open.VI and I believe I see it setting the sampling rate to 50K for all 8 of the channels by default. Is this correct or I am misunderstanding it?
Correct

Quote:
Originally Posted by Phalanx View Post
There are VI's to change the sampling rates, set oversampling and averaging bits, however, I don't see anywhere a simple averaging of samples.

If I'm sampling at 50K I believe you could easily average every 100 samples to obtain a steadier signal at the expense of some lag.

Is there sample averaging being done by the FPGA that I'm not seeing? If so can someone tell me what it is? Is there something I'm missing that allows me to configure this
Yes, the FPGA does averaging, if you configure it, using the set averaging bits VI. Rather then telling it to oversample or average 100 samples, you would tell it to oversample or average 6 bits (64 samples) or 7 bits (128 samples). It takes less space in the FPGA to set up accumulators in powers of 2 then arbitrary numbers of samples. There are details here: http://wpilib.screenstepslive.com/s/...-analog-inputs (geared more towards C++ and Java, but still apply).
Reply With Quote
  #3   Spotlight this post!  
Unread 28-12-2013, 14:46
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: CRIO 9201 Analog Sampling Rate & Averaging

Awesome information. Exactly what I was looking for. I'm surprised I hadn't read that already, as I'm one of the few that actual reads the documentation.

Thanks Joe, you made my day.
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 19:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi