Linearization of a simulink model and pid controller tuning

Hello Sir,
I am doing simulation of dc dc converter with a PWM generator and PID controller. Initially, I got error for linearization,and I know it is because of PWM generator and non linear discontinuity. Later I installed Matlab new version to remove the linearization error. I tried with auto pid tuning but I am getting strange result. Also showing errors with the system I/O ports while tuning pid.
I attached the simulation model for reference. Can any one please help me in linearization and pid tuning of my simulation model?
please help!
thank you

 Accepted Answer

This is very similar to the sitaution shown in this example . If you have 14a and all needed tools (Simulink Control Design and System Identification Toolbox) you can follow the workflow shown in the example. I tried it and everything works just fine.
A couple of points:
  1. When you specify a step signal to inject to the plant, you need to do it in a smart way, which means you can't just keep default options. If you run the simulation with your existing gains, you will see that controller request (output of PID Controller block stays at around 0.007. Therefore, when you specify a step signal to inject, specify an offset to be 0.007 and step magnitude to be 0.001 as shown below.
Now run the simulation, apply the results, then fit the default first order model. You can see it is not perfect, you can play with higher order models, but I was able to get a decent controller even with first order plant model.
  • Tune how fast you want your controller to be using the sliders, here is my design (solid line) vs your existing gains (dashed line). Your existing design seems pretty good already.
  • apply the tuned gains, run the simulation. Error signal looks pretty good.

3 Comments

Hello Sir,
I followed similar steps as shown in your provided example and doing simulation in Matlab 2014 version. But I did not get the same result as you achieved in screenshot 2.
Is amplitude 0.01 or 0.001? you wrote 0.01 but in screenshot, shows 0.001. I considered 0.001 and looked identified plant response controller parameters, but i dont see the regulated desired output 48V.
Alternatively to check, I tried to insert your tuned controller parameter PID values observed in screenshot 2. But I dont see the regulated 48V output result in the scope. do you observe it?
Please can you post me screenshot of plant identification? Otherwise, If possible, send me the corrected simulation model which you troubleshooted. please correct me if i understood anything wrong.
thank you and looking forward for your response.
regards,satish
the amplitude is 0.001. here are more screenshots.
Hello Sir,
Thank you for your help and I appreciate your support.
Regards, Satish

Sign in to comment.

More Answers (0)

Tags

Asked:

on 6 Aug 2014

Commented:

on 14 Aug 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!