View Sample Time Using the Digital Clock Block
This example shows how to view the simulation sample time at a specified sampling interval using the Digital Clock block. In this model, the Scope shows the output of a Digital Clock block with the Sample time set to
In this configuration, the Digital Clock block outputs the simulation time every 0.2 seconds. Otherwise, the block holds the output at the previous value.