How to create PID controller using MATLAB/Simulink?

Discussion in 'Programmer's Corner' started by ashutosh509, Apr 17, 2008.

  1. ashutosh509

    Thread Starter New Member

    Apr 17, 2008
    1
    0
    HI all,

    As aprt of my project i need to use a PID controller in my circuit. Can you guys suggest me can i use Simulink and Matlab for this purpose? I have been doing simulation on Simulink, but i need to build a working model now. I have access to NI DAQ card.
     
  2. visclo

    New Member

    Feb 27, 2006
    2
    0
    Hi
    I think Simulink has a model for PID controllers (found under the drop–down for
    Simulink

    Extras/Additional Linear/PID Controller). You could also right click on the PID controller block and select ""look Under Mask"" to see the inside constitution. I think this is a good start to understand how to built a PID using simulink without going deep inside math calculation. U could also reuse the model to adapt to your needs
    Hope that help, if not, im free for further questions
     
  3. kahafeez

    Active Member

    Dec 2, 2008
    150
    0
    hi i dont knw if this is useful for u or not bt u will find PID in this .zip file....
     
  4. anindya101

    New Member

    Apr 30, 2009
    1
    0
    Hi!
    How to create PID controller using MATLAB/Simulink? I am having a problem using slider in a gui model (Changing the values of Kp,Kd & Ki for a PID controller) in MATLAB. The slider value is shown on the command window but it is not stored in the workspace so i can use it later. how to do this?
     
  5. arkasha

    New Member

    Dec 21, 2009
    4
    0
    Starting with Release 2009b there is a new PID Controller block in Simulink. Simply connect it to you plant model. Then open the block and press "Tune..." button. This launches the tuner which designs PID Controller for you. More info is here:
    http://www.mathworks.com/products/simcontrol/description2.html

    http://www.mathworks.com/company/newsletters/digest/2009/nov/pid-control-design.html

    http://www.mathworks.com/company/events/webinars/wbnr38619.html?id=38619&p1=636028070&p2=636028082
     
  6. kitto326

    New Member

    Aug 21, 2009
    2
    0
    try SISO on MATLAB.
    I know its too late. Might be helpful for up coming viewer.
     
Loading...