Go to Post Easy, we use Magic. Your team wasn't given that in the kit? - Michael Hill [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 09-02-2009, 14:50
Ivan Helmrich's Avatar
Ivan Helmrich Ivan Helmrich is offline
Registered User
FRC #1775 (Tigerbytes)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Kansas City, MO
Posts: 73
Ivan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to behold
LabVIEW Filter help needed

I want to put a low pass filter on the joystick axes to limit accelleration. I've found a low pass filter vi (equi-ripple lawpass filter.vi) that I think should work but I'm not sure what to do with it. When I try to wire the joystick to the filter, it tells me that I have a scalar going into an array of that type. I guess I don't understand what I need to do with the joystick value to get it into an array that is useful. For that matter, I don't really know what the array should consist of.

Short term of course, I'm just looking for a solution. Long term, I'd really like to have an understanding of what needs to go in the filter. I'm not a controls guy so I'm a little confused by the taps also. Is there is a simpler filter I should use?

Anybody got the time to post a screenshot of how to hook this up or an explanation of how to make this work? I'm trying to do this in the teleop vi of the Advanced Project. Thanks.
__________________
“The knowledge of what is relevant, what is not and the skill to cleverly work around or approximate solutions is the essence of engineering.” - James C. King
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2009, 15:11
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: LabVIEW Filter help needed

I wrote a small intro to this, but didn't have the time to go into full detail - http://thinktank.wpi.edu/article/140. If you can, please update it to include your findings.

Your scalar/vector problem indicates that you need to use the Pt by Pt version of the filter. One version just grabs a whole mess of data at once and filters it. The Pt by Pt version grabs it one point at a time and gives an output one point at a time.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2009, 15:43
Ivan Helmrich's Avatar
Ivan Helmrich Ivan Helmrich is offline
Registered User
FRC #1775 (Tigerbytes)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Kansas City, MO
Posts: 73
Ivan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to behold
Re: LabVIEW Filter help needed

Eric,

Thanks, that helps a lot. This gives me a couple of ideas to try tonight.

Ivan
__________________
“The knowledge of what is relevant, what is not and the skill to cleverly work around or approximate solutions is the essence of engineering.” - James C. King
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2009, 20:19
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,751
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: LabVIEW Filter help needed

If you add analysis to your VIs, you will want to open the deployment build specification, go to the Additional Exclusions tab and Check the box to remove library VIs that aren't needed. This is a workaround that will otherwise slow your build and deploy way down.

And as you already found out, use one of the pt by pt filter VIs and you are in good shape.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 10-02-2009, 13:37
Ivan Helmrich's Avatar
Ivan Helmrich Ivan Helmrich is offline
Registered User
FRC #1775 (Tigerbytes)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Kansas City, MO
Posts: 73
Ivan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to beholdIvan Helmrich is a splendid one to behold
Re: LabVIEW Filter help needed

OK, I've got something that I think will work. If I get the time to experiment, I'll be looking to increase the level of awesomeness before ship! Thank you both.

Ivan
__________________
“The knowledge of what is relevant, what is not and the skill to cleverly work around or approximate solutions is the essence of engineering.” - James C. King
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Joystick Button Programming in Labview Help Needed domoarigato NI LabVIEW 11 28-01-2009 10:55
Light Filter thefro526 FIRST Tech Challenge 2 19-09-2006 22:40
HELP-URGENT PROGRAMMING HELP NEEDED Rohith Surampudi Lego Mindstorm Discussion 1 24-03-2006 23:05
help: cannot get the picture in the labVIEW program .. (was: need help!! quickly!) liad LabView and Data Acquisition 8 18-01-2006 12:20
Gyro Filter MikeDubreuil Electrical 7 04-02-2003 17:26


All times are GMT -5. The time now is 10:37.

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