Trigger at start of simulation

19 ビュー (過去 30 日間)
Shehryaar Ali
Shehryaar Ali 2022 年 2 月 14 日
回答済み: Benjamin Thompson 2022 年 2 月 14 日
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.

回答 (1 件)

Benjamin Thompson
Benjamin Thompson 2022 年 2 月 14 日
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.

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by