simulation is stopped , need to continue the other part of program

1 次查看(过去 30 天)
I am getting the following error while simulating my model,
At time 2.286567862186523, simulation hits (1000) consecutive zero crossings. Consecutive zero crossings will slow down the simulation or cause the simulation to hang. To continue the simulation, you may
1) Try using Adaptive zero-crossing detection algorithm
or
2) Disable the zero crossing of the blocks shown in the following table.
I am doing the same simulation in a loop, when the simulation stops for zero crossings it is okay, then I want the simulation run for next iteration, but everything stops, that is my problem. How can I continue the loop?
Thanks in advance

采纳的回答

Fangjun Jiang
Fangjun Jiang 2011-10-24
Well, you need to follow the suggestion and modify your model.
If you have limited numbers of blocks that have this zero-crossing issue, change the setting using adaptive detection or disable zero-crossing detection.
In the Configuration Parameters, Solver panel, there is an option for zero-crossing control, you can enable all or disable all.
You need to save the model after the change.

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by