Trigger at start of simulation

I have a triggered system in Simulink, that works perfectly excepts it needs to be triggered once at the start of simulation to start working. Kindly tell me a way to mitigate the issue.

Answers (1)

Benjamin Thompson
Benjamin Thompson on 14 Feb 2022
One way is using an Initial Condition block per my attached example. I use an enabled subsystem in the example because a triggered subsystem by definition needs a second time step to satisfy the conditions of the trigger. The same example also uses a clock source to compare to time zero, which is another way to have a signal that is true only at the start of simulation.

Categories

Find more on Modeling in Help Center and File Exchange

Products

Release

R2021b

Asked:

on 14 Feb 2022

Answered:

on 14 Feb 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!