- 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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ameen
el 27 de Feb. de 2014
Respondida: A Jenkins
el 27 de Feb. de 2014
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 comentarios
Respuesta aceptada
A Jenkins
el 27 de Feb. de 2014
How you approach it really depends on what you are trying to accomplish. Off the top of my head:
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!