Simulink Control Design™ - MathWorks

(Tuis.) #1

Enable zero-crossing detection


Enable zero-crossing detection to ensure that the software computes the linear system
characteristics at the following simulation times:


  • The exact snapshot times, specified in Snapshot times on page 16-294.


As shown in the following figure, when zero-crossing detection is enabled, the
variable-step Simulink solver simulates the model at the snapshot time Tsnap. Tsnap may
lie between the simulation time steps Tn-1 and Tn which are automatically chosen by
the solver.

Computes linear system
characteristics at this time point

Tn-1 Tsnap Tn Time


  • The exact times when an external trigger is detected, specified in Trigger type on
    page 16-295.


As shown in the following figure, when zero-crossing detection is enabled, the
variable-step Simulink solver simulates the model at the time, Ttrig, when the trigger
signal is detected. Ttrig may lie between the simulation time steps Tn-1 and Tn which
are automatically chosen by the solver.

Computes linear system
characteristics at this time point

Time

Amplitude
1

0


Tn-1 Ttrig Tn

Trigger signal

For more information on zero-crossing detection, see “Zero-Crossing Detection”
(Simulink) in the Simulink User Guide.

Settings

Default: On

16 Blocks — Alphabetical List

Free download pdf