Search code examples
matlabsimulinktimedelay

how to apply a signal after a period of time in simulink


I simulated a system with Simulink. Now , I want to apply controller signal to system after a time, for example after 20 seconds. It means that the sys. works 20s without controller and after it the controller is applied.

Which block can do it?


Solution

  • Put the controller inside a Triggered Subsystem and set the trigger signal to go high after 20s, for example using a Clock block and a Compare to Constant block, set to >=20.