What is the difference between Step size and Sample Time ?
Mostrar comentarios más antiguos
I have a basic doubt in simulink solver setting , that What is the difference between Step size and Sample Time ?
Respuesta aceptada
Más respuestas (2)
Sarvesh Kale
el 7 de Mzo. de 2023
1 voto
What is Step size ?
This option specifies the time increments at which the model will be simulated, generally solvers are kept variable step so that simulink chooses the step size automatically which is gcd of all sample times in Simulink model, doing this will ensure that sample time of each blocks in the model is hit, more information is found in the following link fixed step size.
What is Sample time ?
This is the time during the simulation at which the internal states of the block and output are updated and not before that , a model can have blocks with different sample times, if the model has two blocks with 0.4 and 0.5 as sample time and variable step solver then the time steps would be 0, 0.4, 0.5, 0.8, 1.0, 1.2,.. and so on. More information can be found in the following links Sample times in system, What is sample time ? .
I hope this information helps.
Thank you
in simple terms step size defines time to execute one complete logics in th model and sample time is the block output time
Categorías
Más información sobre Modeling en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!