how to solve the integer multiple of fixed-step size
100 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/622358/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/622363/image.jpeg)
0 comentarios
Respuestas (1)
Aghamarsh Varanasi
el 25 de Mayo de 2021
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 comentario
Nur Aida Ariffah
el 25 de Ag. de 2023
Hi, I have the same problem and i tried this method but it didn't work
Ver también
Categorías
Más información sobre Manual Performance Optimization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!