simulation time shortened with step size

5 次查看(过去 30 天)
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 个评论
Jeff
Jeff 2017-3-2
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.

请先登录,再进行评论。

回答(1 个)

Prashant Arora
Prashant Arora 2017-3-7
编辑:Prashant Arora 2017-3-7
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.

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by