Go to Post At this time of the season, there is only one response: BAAAAAAAAA-humbug! - dlavery [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: 8 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 27-01-2012, 15:06
baronep's Avatar
baronep baronep is offline
Student President
FRC #2848 (Jesuit All-Sparks)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dallas TX
Posts: 167
baronep is on a distinguished road
Velocity PID vs Distance PID

What is the difference between velocity PID and Distance PID and what changes do I have to make to the standard labview code?
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2012, 15:33
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,091
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: Velocity PID vs Distance PID

Quote:
Originally Posted by baronep View Post
What is the difference between velocity PID and Distance PID and what changes do I have to make to the standard labview code?
http://www.chiefdelphi.com/forums/sh...38&postcount=4

Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2012, 00:21
baronep's Avatar
baronep baronep is offline
Student President
FRC #2848 (Jesuit All-Sparks)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dallas TX
Posts: 167
baronep is on a distinguished road
Re: Velocity PID vs Distance PID

I had seen that post, but I am still concerned about trying to tune a loop designed for displacement and not velocity. 1. Is this a legitimate concern 2. How can I create/implement/code a PID control in labview for velocity
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2012, 00:29
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Velocity PID vs Distance PID

Quote:
Originally Posted by baronep View Post
How can I create/implement/code a PID control in labview for velocity
If you understand a position-controlling PID implementation, you might try to do a speed-controlling PID the same way, with one slight difference. Instead of using the output of the PID as the motor control value directly, use the output of the PID to add to or subtract from the motor control value instead. That extra integration step at the end lets you tune the control the way you are used to.
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2012, 00:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,091
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: Velocity PID vs Distance PID

Quote:
Originally Posted by baronep View Post
I had seen that post, but I am still concerned about trying to tune a loop designed for displacement and not velocity. 1. Is this a legitimate concern 2. How can I create/implement/code a PID control in labview for velocity
It's a legitimate concern in the sense that you have to do things somewhat differently when tuning a control for a plant that does not contain an integrator (from the designated plant input to the designated plant output) compared to one which does.

If your plant output is distance and your plant input is voltage to the motor, then the plant contains an integrator. If your plant output is speed and your plant input is voltage to the motor, then the plant does not contain an integrator.

There are many different ways to proceed. There is no one "right" way.

You can tune the "I" gain of the PID the way you would normally tune the "P" gain, and tune the "P" gain the way you would normally tune the "D" gain.

You can integrate the output from the PID. Then you can tune the PID in much the same manner that you would tune it for distance.

You can add a feedforward signal to the output of the PID.

You can command current instead of voltage. Then your plant has some integrator behavior and you may be able to tune it for speed in much the same manner that you would tune for position (I haven't heard yet of any teams successfully doing it this way, so this is pure speculation).

You can write your own home-brew custom control.

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 07:03.

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