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

1 view (last 30 days)
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
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

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 24 Oct 2011
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.

More Answers (0)


Find more on General Applications in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!