Simulink: High Freq. noise in sim. results

조회 수: 11 (최근 30일)
Sophie
Sophie 2013년 6월 11일
I am simulating a very simple control loop with a P-controller and a stable 1-pole plant (with a pole at -1.5*10^5) that is shown in the image.
I am expecting no oscillations in the output (because the plant is stable and the controller is a P-controller); however, I see high frequency oscillations in the output. What are they due to? How to avoid them?

채택된 답변

Pourya Alinezhad
Pourya Alinezhad 2013년 6월 11일
편집: Pourya Alinezhad 2013년 6월 11일
hi.i draw your model in simulink and also modeled the system in matlab itself. the STEP()command in matlab obviously shows that the system is stable and has a soft first order response. but in simulink !! there are several solvers to solve the differential equations in sim model.in simulink menu click configuration parameters... change the solver type to be a stiff solver....and also change the values of tolerances to somewhat like 1e-5 .(already they are initiated to be auto) this solves the problem.

추가 답변 (2개)

Sophie
Sophie 2013년 6월 12일
Thank you, Pourya. Changing the solver to the stiff solver (ode15s) indeed helped.
Why is this system stiff? I thought that a system is stiff if it has one fast time constant and one slow time constant (and there are 2 different rates of decaying of the transients, as a result). However, my system has only 1 pole; why is it stiff?
  댓글 수: 1
Pourya Alinezhad
Pourya Alinezhad 2013년 6월 12일
편집: Pourya Alinezhad 2013년 6월 12일
this system is stiff because of fast raise of output. stiff equations have rapid changes in their response,so more data points are needed to solve them accurately in order to reach converge.

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


Sophie
Sophie 2013년 6월 19일
Ok, thanks.

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by