Using Simulink     Search    Help Desk 

Breaking at Zero-Crossings

The zcbreak command causes the simulation to halt when Simulink detects a non-sampled zero crossing in a model that includes blocks where zero-crossings can arise. After halting, Simulink prints the location in the model, the time, and the type (rising or falling) of the zero-crossing. For example, setting a zero-crossing break at the start of execution of the zeroxing demo model

and continuing the simulation

results in a rising zero-crossing break at

If a model does not include blocks capable of producing nonsampled zero-crossings, the command prints a message advising you of this fact.



[ Previous | Help Desk | Next ]