필터 지우기
필터 지우기

simulink sum wrong output

조회 수: 3 (최근 30일)
jiaqi
jiaqi 2015년 2월 24일
댓글: jiaqi 2015년 2월 24일
Hi,
I'm simulating my discrete controller but got one problem with the sum function (in red circle). The two inputs are plotted with the purple and yellow lines and the output is the blue line. At 0.3s the sum outputs a very large result about -7*10^7 even after I set the output limit to +-50. But from the inputs, the result shouldn't be that large. I tried different time steps but that didn't help. Did I set something wrong? Any advice will be appreciated.
Regards, Jiaqi

답변 (1개)

Abhishek GS
Abhishek GS 2015년 2월 24일
Hi Jiaqi,
The Output Minimum and Output Maximum do not saturate or clip the output signal. Use a saturation block after the Sum block if you intend it for that purpose. The Output Min and Max values are used for Parameter range checking, Simulation range checking and Automatic scaling of fixed-point data types. Refer the below link for more information.
  댓글 수: 1
jiaqi
jiaqi 2015년 2월 24일
Hi Abhishek,
After adding a saturation block after the sum, the result keeps the same, still very large. Am I doing something wrong?
Thanks, Jiaqi

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by