How to change the solver settings for embedded coder? and what basis matlab calculates solver time for if the setting is auto ?

5 次查看(过去 30 天)
Hi,
We generated the matlab simulink model and running on TI board with embedded coder. The solver settings are in auto but after some experments we found that it runs at 100 ms .
I wanan know how this 100ms arrived from matlab?
if i want to run all the state machines in simulink at 100ms, then what should i do?

回答(1 个)

Rohit Kulkarni
Rohit Kulkarni 2023-8-30
In my understanding you want to know how MATLAB selects a step-size when the fixed-step size is in "auto" option.
There are various rules which determine how the software selects the appropriate step size.
You can find the rules given in the documentation in following link:
If you want to run all the state machines in Simulink at 100 ms, then set the Fixed-step size to 0.1
Hope it helps!

类别

Help CenterFile Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by