필터 지우기
필터 지우기

What is wrong in this model? I change parameters already.

조회 수: 1 (최근 30일)
Marisa Lertvittayavivat
Marisa Lertvittayavivat 2022년 6월 7일
답변: Tushar 2023년 9월 28일

답변 (1개)

Tushar
Tushar 2023년 9월 28일
Hi Marisa,
I understand that you are encountering issues with the task mentioned in the "Simulink Fundamentals" course. I tested the task on my end and was able to solve it. Here are a few points that may assist you:
  • In the 'Discrete Transfer Fcn' dialog box, the numerator and denominator coefficients should be listed in decreasing powers of 'z'. In this case, the Numerator and Denominator should be [Kp+Ki*Ts, -Kp] and [1, -1], respectively.
  • As stated in the task, the Initial States should be set to '0'.
  • To set the Sample Time to 'Ts', select the 'Discrete Transfer Fcn' block in the Simulink window and enter the following command in the MATLAB command window:
set_param(gcb,"SampleTime","Ts")
For more information on the 'Discrete Transfer Fcn' block and setting configuration parameters programmatically, please refer to the documentation links provided below:
I hope this information proves helpful!

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by