nonlinear model in simulink and designing pid controller

조회 수: 10 (최근 30일)
azam ghamari
azam ghamari 2019년 8월 30일
댓글: nor zulaiman 2021년 1월 2일
Hi guys
when I design for a nonlinear model in simulink a pid controller, and I want to run the simulink, it gives me bellow image.
(max step size is 0.2s , please go to configuration parameter and set "automatic solver parametric selection" to "none". although, I do that again it gives me this warning and when I see the scop, it does not give me a good result, it gives me just 0 in output instead of giving 2 things( output and input).
I attach also my slx file.
  댓글 수: 3
azam ghamari
azam ghamari 2019년 9월 6일
hello
I have a pid controller. please see the file. and also I did it( with fixed time 0.001) and it gives me this figure. while when I use the variable step, it gives me totally different result!
please see the attached files.1.png
nor zulaiman
nor zulaiman 2021년 1월 2일
can i get your simulink pic

댓글을 달려면 로그인하십시오.

답변 (1개)

Rhea Chandy
Rhea Chandy 2020년 9월 29일
It is my understanding that you are having some difficulty in choosing a solver for your model.
The automatic solver recommends a fixed or variable step solver based on your maximum step size. If you’re not satisfied with the results from the auto solver, I suggest manually choosing the solver and comparing the different results with the tradeoffs. For example, decreasing the step size in a fixed-step solver will increase the accuracy of the results but increases the time required to simulate the system.
This guide can help you in choosing various solver for the dynamics of your model.

카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by