필터 지우기
필터 지우기

Sampling time must agree

조회 수: 18 (최근 30일)
Milan
Milan 2013년 8월 2일
답변: Aurelien TCHOUNYA NGATCHOU 2022년 12월 4일
i have an chart which run on event of 1 milli second and i have included the PID library inside sateflow .when ever i click on tune option i get error as sampling time must agree and when i try to run the model i get error asking me to change the sampling time of PID library to -1(inherited ) or constant .

채택된 답변

Guy Rouleau
Guy Rouleau 2013년 8월 2일
Blocks inside Stateflow Simulink functions must inherit their sample time. This is because there is no way for the engine to know when you will call the function.
If the logic in your Stateflow chart systematically calls the Simulink function at 0.001s, there is no problem setting the sample time of the PID block to -1. Results should be the same as if it had a sample time of 0.001s
  댓글 수: 1
Milan
Milan 2013년 8월 5일
when i change the sampling time to -1 and clicked the option tune in PID controller i am getting error as "input parameter of c2d must be positive scalar***"

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

추가 답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 2일
Have you changed the sample time or not yet?
  댓글 수: 1
Milan
Milan 2013년 8월 5일
i had changed it to 1 milli second but i was getting error so i changed it to -1 ,the model was running but when i clicked on tune option of PID controller i got an error "input parameter of c2d must be positive scalar "

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


Aurelien TCHOUNYA NGATCHOU
Aurelien TCHOUNYA NGATCHOU 2022년 12월 4일
Hallo Zusamen,
ich bereite mich vor, gerade bei Matlab-LiveScript zu üben. ich bekomme momentan einen Fehlermeldung "Error using (*) Sampling times must agree" was soll in meinen Matlabscript gändert werden,um diese Simulation durchführen zu können. Vielen Dank

카테고리

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