How to create PID controller using MATLAB/Simulink?

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

  1. ashutosh509

    ashutosh509 Thread Starter New Member

    Joined:
    Apr 17, 2008
    Messages:
    1
    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

    visclo New Member

    Joined:
    Feb 27, 2006
    Messages:
    2
    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

    kahafeez Active Member

    Joined:
    Dec 2, 2008
    Messages:
    150
    Location:
    Islamabad, Pakistan
    hi i dont knw if this is useful for u or not bt u will find PID in this .zip file....

    Attached Files:

  4. anindya101

    anindya101 New Member

    Joined:
    Apr 30, 2009
    Messages:
    1
    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

    arkasha New Member

    Joined:
    Dec 21, 2009
    Messages:
    4
    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

    kitto326 New Member

    Joined:
    Aug 21, 2009
    Messages:
    2
    Location:
    pakistan
    try SISO on MATLAB.
    I know its too late. Might be helpful for up coming viewer.
Similar Threads
Forum Title Date
Programmer's Corner how to create diagonal movement in a matlab matrix Jul 24, 2014
Programmer's Corner Win98 CreateThread() Jul 15, 2012
Programmer's Corner how to create or simulate an amplifier in SimpowerSystem May 20, 2012
Programmer's Corner How to Create A Triangle waveform in MATLAB Oct 1, 2011
Programmer's Corner how to create distance protection by using PSB Simulink Nov 1, 2010

Share This Page