필터 지우기
필터 지우기

Specify sample time of if block

조회 수: 26 (최근 30일)
Robin Kirsch
Robin Kirsch 2020년 7월 19일
답변: Aman Vyas 2020년 7월 30일
Hello,
I receive an error that my sample time of my IF-Block does mismatch with the Sample time I am using for the controller inside the action Subsystem. I do not want to change the sample time inside the action subsystem, is it somehow possible to change the sample time of the IF-Block , because I cant seem to find that?
Cheers

답변 (1개)

Aman Vyas
Aman Vyas 2020년 7월 30일
Hi,
For resolving sample time mismatch, you can use rate transition block to slow down or fasten up the sample time so as to bring in accordance to the output block.
In your model, you can put rate transition block just after the IF block which should match with the controller present inside subsystem, so that no changes inside the subsytem block has to be made.
For more info on usage of Rate transition, refer to following :
Hope it helps!

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by