How to set different timesteps (sample time) for different subsystems?
26 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 8 Okt. 2020
Bearbeitet: MathWorks Support Team
am 3 Feb. 2025
How to set different timesteps (sample time) for different subsystems?
Akzeptierte Antwort
MathWorks Support Team
am 25 Jan. 2025
Bearbeitet: MathWorks Support Team
am 3 Feb. 2025
You can do this by right-clicking on a subsystem->Block Parameters->Check the option 'Treat as atomic unit'. This should enable the sample time field in the block parameters. You can use this to set different sample times.
Note
: If the model contains a mix of continuous and discrete elements, then atomic subsystems won't work. In that case, use the Model Discretizer. To access the release-specific documentation for Model Discretizer in MATLAB R2020a, execute the following command in the command window:
>> web(fullfile(docroot, 'simulink/ug/model-discretizer.html'))
For information regarding the current release, please visit the following link:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Subsystems 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!