Go to Post We want people to exercise Gracious Professionalism® and play at their best, but also not really because we find this archaic rule to satisfy something related to inspiring students to pursue careers in science and technology.™ - PayneTrain [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 Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 03-07-2011, 15:01
windtakers windtakers is offline
Registered User
AKA: Blake Dansfield
FRC #3620 (Average Joes)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: michigan
Posts: 33
windtakers is an unknown quantity at this point
PID controllers help

I am having a very hard time trying too understand how PID controllers work, and how to use them in labview. If anyone has any info on PID, or know a good tutorial on them, would they please let me know.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-07-2011, 18:23
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PID controllers help

Quote:
Originally Posted by windtakers View Post
I am having a very hard time trying too understand how PID controllers work, and how to use them in labview. If anyone has any info on PID, or know a good tutorial on them, would they please let me know.
Google "PID controller" and you'll get lots of hits.

Use Chief Delphi search and you'll find lots of recent threads about PID controllers.

Search the LabVIEW help for PID and you'll find a LabVIEW-specific explanation and some examples.



Attached Files
File Type: pdf Chief Delphi - PID Search Results.pdf (208.0 KB, 63 views)
Reply With Quote
  #3   Spotlight this post!  
Unread 03-07-2011, 21:48
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: PID controllers help

The first step is to understand what a PID controller is trying to do.

A simple example is a cruise control on a car. The PID controller there wants to keep the car's speed constant, and correct any changes to the speed within a reasonably brief time..

Let's say you want to maintain 55 MPH, which we call the "setpoint". If the car's speed is 25 MPH, we have an "error" of -30 MPH. If we allow the P (proportional) factor to do its thing, it asks the car to accelerate, in proportion to the error - bigger error, more acceleration.

But we don't want to accelerate at full throttle, so we? That much power might cause the car to be unstable on the road, so we limit the maximum acceleration regardless of the "error" to some value - this is the D (derivative) factor.

OK, once we get to 54 MPH, the error is small, but not yet zero. The acceleration requested by P is less than the D limit, but the car might take an unreasonably long time to finally reach 55 MPH. So what we do is use the I (integral) factor to add up the error over time, so that in a relatively brief time even a small error is handled and brought to zero.

I hope this helps. In the real world, we often don't even need D or I, with P being sufficient for many tasks.

Programming PID is actually quite simple, but tuning the P, I and D factors can take some tedious trial and error.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #4   Spotlight this post!  
Unread 05-07-2011, 13:20
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: PID controllers help

This paper has been one of my favorites to recommend when it comes to PID. While it's written for an embedded micro controller system in C the principles are the same and you should be able to gain some deeper understanding from it.

http://www.eetimes.com/design/embedd...-without-a-PhD

The full article PID without a PhD was published in the October 2000 issue of Embedded Systems Programming magazine. It is written to provide the embedded software engineer with a simple design method for writing a PID controller in software, without requiring any formal knowledge of control theory.
__________________
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
  #5   Spotlight this post!  
Unread 05-07-2011, 14:18
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,347
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: PID controllers help

Recently I found a PID article written for Lego Mindstorm. It is actually quite good and quite detailed. Portions of it are a bit deep for elementary school, but for the most part, quite easy to follow.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #6   Spotlight this post!  
Unread 05-07-2011, 19:19
Tommy.Brown's Avatar
Tommy.Brown Tommy.Brown is offline
Lead Programmer
FRC #1477 (Texas Torque)
Team Role: Programmer
 
Join Date: Jul 2011
Rookie Year: 2011
Location: The Woodlands
Posts: 27
Tommy.Brown is an unknown quantity at this point
Re: PID controllers help

When manipulating your PID values on your robot, the I value will generally be a very low number (or at least it was for our robot). You will want to change the P and D values, changing the I value slightly will make a big change in your robot. Also, make small changes to each value and test that value, doing a large change in value will not be good. I have personally seen our arm crash down and smash our pneumatic board and break a few solenoids.
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 08:14.

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