Specify sample time of if block

40 Ansichten (letzte 30 Tage)
Robin Kirsch
Robin Kirsch am 19 Jul. 2020
Beantwortet: Aman Vyas am 30 Jul. 2020
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

Antworten (1)

Aman Vyas
Aman Vyas am 30 Jul. 2020
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!

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by