how to fix invalid setting for fixed-step size in matlab?

19 次查看(过去 30 天)
Invalid setting for fixed-step size (2.5E-7) in model 'TAB_1_LOAD'. All sample times in your model must be an integer multiple of the fixed-step size.
Component: Simulink | Category: Model error
The sample time period (5.0E-8) of 'TAB_1_LOAD/powergui/EquivalentModel1/State-Space' is not an integer multiple of the fixed step size (2.5E-7) specified for model.
this is my problem how could i fix it?

回答(1 个)

Walter Roberson
Walter Roberson 2021-12-8
You configured the Simulink solver as being a fixed-step algorithm instead as being variable-step. When you do that, then you cannot use any blocks that need a faster step than the step time of your algorithm.
In this particular example TAB_1_LOAD/powergui/EquivalentModel1/State-Space is configured to require a step time of 5E-8 which is 1/5th of the step time of the model itself, 2.5E-7 .
You would need to either increase the step time of the State-Space or else decrease the step time of the model itself

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by