simulation time shortened with step size

4 visualizaciones (últimos 30 días)
Jeff
Jeff el 2 de Mzo. de 2017
Editada: Prashant Arora el 7 de Mzo. de 2017
I am reasonably new on SIMULINK and I am trying to configure the solver to have sufficient time resolution to analyze the high frequency response of a system to sharp transitions. I am using the ode14x (extrapolation with fixed time step) solver. I shortened the time step from the default of 1 msec to 10 microsec. The consequence of this is my simulation time got reduced by exactly a factor of 100. 10 microsec/1 msec = 100. Where do I specify that more samples must be created to be able to cover the entire span of the simulation time. I do not see anything in the documentation either.
Something so trivial becomes VERY AGGRAVATING. I hope someone can guide me,
Thanks
  1 comentario
Jeff
Jeff el 2 de Mzo. de 2017
It appears tha SIMULINK is only allowing me 5000 samples of data collection; hence, my simulation time duration is only 50 msec. I would like to expand the simulation time out further to be sure the transients have died out. The system has low damping and 50 msec is not long enough.

Iniciar sesión para comentar.

Respuestas (1)

Prashant Arora
Prashant Arora el 7 de Mzo. de 2017
Editada: Prashant Arora el 7 de Mzo. de 2017
Hi Jeff,
I am suspecting that your model is logging only last 5000 samples from the simulation data. You can validate if you have checked "Limit data points to last" option in Configuration Parameters. This option is available under "Additional Parameters" of the "Data Import/Export" pane.
If your model uses a "To Workspace" block to log data, there's a similar option available in the Block parameters of the block.
If your model uses a "Scope" block to log data, there's another option in the Scope "Logging" settings, which can be accessed by double clicking on the Scope block and clicking on the Gear icon on top left.
If you are logging Signal data, there's an option available if you right click on any signal and select Properties.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by