Sampling time must agree
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Milan
am 2 Aug. 2013
Beantwortet: Aurelien TCHOUNYA NGATCHOU
am 4 Dez. 2022
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 .
0 Kommentare
Akzeptierte Antwort
Guy Rouleau
am 2 Aug. 2013
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
Weitere Antworten (2)
Aurelien TCHOUNYA NGATCHOU
am 4 Dez. 2022
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu PID Controller Tuning finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!