Subsystem to monitor the change of three inputs

1 回表示 (過去 30 日間)
John MacLean
John MacLean 2020 年 1 月 29 日
回答済み: Ganesh Regoti 2020 年 2 月 5 日
I am trying to design a subsystem to monitor the change of three inputs. If one, two or all of the inputs changes values I want the simulationto pause. If none change I want the simulation to continue and so on. I was thinking of using a triggered subsystem but I am not sure how to think f it logically?

採用された回答

Ganesh Regoti
Ganesh Regoti 2020 年 2 月 5 日
Hi,
You can check whether the value has changed from the previous time-step using delay blocks.
If the signal is discrete then you can use unit delayblock.
If the signal is continuous, you can use transport delay block.
Then you can add logical operations to check you conditions and to pause the simulation you can use assertion blocks. You can refer to
Hope this helps!

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by