Using Simulink    

Model Execution Phase

The simulation now enters the model execution phase. In this phase, Simulink successively computes the states and outputs of the system at intervals from the simulation start time to the finish time, using information provided by the model. The successive time points at which the states and outputs are computed are called time steps. The length of time between steps is called the step size. The step size depends on the type of solver (see Solvers) used to compute the system's continuous states, the system's fundamental sample time (see Modeling and Simulating Discrete Systems), and whether the system's continuous states have discontinuities (see Zero-Crossing Detection).

At the start of the simulation, the model specifies the initial states and outputs of the system to be simulated. At each step, Simulink computes new values for the system's inputs, states, and outputs and updates the model to reflect the computed values. At the end of the simulation, the model reflects the final values of the system's inputs, states, and outputs. Simulink provides data display and logging blocks. You can display and/or log intermediate results by including these blocks in your model.


  Simulating Dynamic Systems Processing at Each Time Step