how to solve the integer multiple of fixed-step size

when play the drive train
Invalid setting for fixed-step size (10000000.0) in model 'Drivetrain'. 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-5) of 'Drivetrain/Drivetrain/Discrete-Time Integrator ' is not an integer multiple of the fixed step size (10000000.0) specified for model.
Component:Simulink | Category:Model error
The sample time period (5.0E-5) of 'Drivetrain/Drivetrain/Discrete-Time Integrator1' is not an integer multiple of the fixed step size (10000000.0) specified for model.

답변 (2개)

Aghamarsh Varanasi
Aghamarsh Varanasi 2021년 5월 25일

0 개 추천

Hi,
The Fixed-step size is the time interval after which the solver solves a Simulink model. Hence, all the sample times in a Simulink model must be an integer multiple of the fixed-step size. In your example, the fixed-step size is 10000000(e7). And the sample time for the block 'Drivetrain/Drivetrain/Discrete-Time Integrator' is '5e-5', which is not an integer multiple of e7.
To solve this issue, you can set the fixed-step size of the model to be 'auto'. You can find this settings in the Solver > Solver Details > Fixed-Step Size in the Model settings.
Hope this helps

댓글 수: 1

Hi, I have the same problem and i tried this method but it didn't work

댓글을 달려면 로그인하십시오.

Kshitij
Kshitij 2025년 11월 14일

0 개 추천

Error:The sample time period (0.00034722222222222224) of 'simulation/PMU (PLL-Based, Positive-Sequence)/PLL (3ph)/Model/Automatic Gain Control/Positive-Sequence (PLL-Driven)/Mean (Variable Frequency)2/Model/Digital Clock' is not an integer multiple of the fixed step size (5.0E-5) specified for model.

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

2021년 5월 19일

댓글:

2025년 11월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by