Using Simulink    

Modeling and Simulating Discrete Systems

Simulink has the ability to simulate discrete (sampled data) systems. Models can be multirate, that is, they can contain blocks that are sampled at different rates. Models can also be hybrid, containing a mixture of discrete and continuous blocks.

Discrete Blocks

Each of the discrete blocks has a built-in sampler at its input, and a zero-order hold at its output. When the discrete blocks are mixed with continuous blocks, the output of the discrete blocks between sample times is held constant. The outputs of the discrete blocks are updated only at times that correspond to sample hits.


 Algebraic Loops Sample Time