- Change the switching frequency on your PWM so you don't have to calculate as often.
- Shorten your simulation time.
- Increase the decimation on your scope.
- Get a better computer.
- Look at a similar example and see how they set up the solver parameters.
simulation takes so long and memory problem at the end
2 次查看(过去 30 天)
显示 更早的评论
Hi all,
I am trying to simulate the performance of a motor and a battery.
in the first model i attached the motor directly to the battery as shown in figure and simulate it. the simulation was fast and i got results.
in the second case, i put a PWM and a H-Bridge between the same motor and battery and tried to simulate the performance using the same solver and input but the time step was much much smaller than the time step in the first case and when i wait to the end of the simulation i can't open the scope because of memory problem.
i tried to increase the minimum time step but there was a problem with the tolerance. i increased the virtual memory but still has the same problem.
the used solver is ode23t
any suggestions ??
0 个评论
采纳的回答
A Jenkins
2014-2-27
How you approach it really depends on what you are trying to accomplish. Off the top of my head:
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!