zero crossings on the Solver pane in the
MCP box.
This may give your model enough time to
resolve the zero crossing.
Disable zero-crossing
detection for a specific
block
First, clear the Enable zero-crossing detection check box on the block's
parameter dialog box.
Then, select Use local settings from
the Zero-crossing control pull down on
the Solver pane of the MCP box.
Locally disabling zero-crossing detection
prevents a specific block from stopping the
simulation because of excessive consecutive
zero crossings. All other blocks continue to
benefit from the increased accuracy that
zero-crossing detection provides.
Disable zero-crossing
detection for the
entire model
Select Disable all from the Zero-crossing control pull down on the Solver pane of
the MCP box.
This prevents zero crossings from being
detected anywhere in your model.
Reduce the maximum
step size
Enter a value for the Max step
size option on the Solver pane of the
MCP box.
This can insure the solver takes steps small
enough to resolve the zero crossing.
However, reducing the step size can increase
simulation time, and is seldom necessary
when using the Adaptive algorithm.
Use
the Adaptive Algorithm
Select Adaptive from the Algorithm pull
down on the Solver pane in the MCP
box.
This algorithm dynamically adjusts the zero-
crossing threshold, which improves accuracy
and reduces the number of consecutive zero
crossings detected. You can now specify Time tolerance and Signal threshold.
Relax the Signal
threshold
Select Adaptive from the Algorithm pull
down and increase the value of
the Signal threshold option on
the Solver pane in the MCP box.
The solver requires less time to precisely
locate the zero crossing. This can reduce
simulation time and eliminate an excessive
number of consecutive zero-crossing errors.
However, relaxing the Signal threshold may
reduce accuracy.