Go to Post ...next years game will hopefully make my head hurt, this years did. - Michael Leicht [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition
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 19-01-2012, 19:45
Bubmaster's Avatar
Bubmaster Bubmaster is offline
Registered User
FRC #4004 (Rovers)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Muskegon
Posts: 2
Bubmaster can only hope to improve
Analog Filter Help

We are a rookie team this year and we were wondering how we would set up an analog filter on labview for our gyro so we can filter out some of the noise.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2012, 10:19
darist darist is offline
Registered User
AKA: David Aristizabal
no team
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Newark, NJ
Posts: 36
darist is an unknown quantity at this point
Re: Analog Filter Help

Analog filter? Once the data is in labView, it's all digital, I'm not sure what you mean by "Analog" in this case. To me, an analog filter is made of things like real-life resistors, capacitors, inductors, amplifiers, etc.

If you just want to filter out some noise out of your signal in labView, you'd be using a digital filter. LabView has some pretty advanced filter tools but I think there is a "PID Control Input Filter" in the PID Palette that's pretty handy and easy to use: hook up your noisy signal to the input, and you should get an output signal with less noise.

You can use the PID Control Input Filter even if you are not using any other PID features.

good luck!
David
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2012, 12:16
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Analog Filter Help

Quote:
Originally Posted by Bubmaster View Post
We are a rookie team this year and we were wondering how we would set up an analog filter on labview for our gyro so we can filter out some of the noise.
Are you sure you need to? The FPGA has dedicated accumulators for the gyro, and the analog breakout has a single-pole low-pass filter at ~1600Hz. If you are interested in angular position, this should be good enough.

As Darist said, it is pretty easy to do the filtering digitally in LabVIEW. Pull up the filter pallette, drop a few filters and a few graph indicators, and tweak parameters until you are happy.

However, learning how to do analog filters is a great learning experience and is pretty easy if you have the right tools on hand. You will want at least one person who already knows how to solder (or at least one person who doesn't mind a few learn-burns).

First you need to figure out where the line is between noise you want to remove and signal you want to keep. LabVIEW makes it easy to take the FFT of your signal and watch it on a graph in real time. Or, pick something a few times faster than your effective sample rate. If you are making decisions at 50Hz, put it at ~300Hz.

Next, translate that line (in Hz) to values for your filter. The internet is better at describing the math than I am, so I'll leave this step to google. Your resistance should be in the 5k-50kish range.

Then, solder it up and put it in line.

Last, compare your newly cleaned signal to your old dirty signal. Is it still dirty? Did you clean it up so aggressively that you lost signal? Iterate!
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 16:04.

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