Use stateflow to control variant subsystem

1 回表示 (過去 30 日間)
Chai Wei Kuo
Chai Wei Kuo 2021 年 9 月 24 日
回答済み: Shanmukha Voggu 2021 年 10 月 1 日
I want to use stateflow to switch variant subsystem
take a simple example: see attachments , I hope it will operate 'add' subsystem in first 5 sec. then it will operate 'product' subsystem.
How can I do it?
Is it workable?
thank u

回答 (1 件)

Shanmukha Voggu
Shanmukha Voggu 2021 年 10 月 1 日
Hi,
The variant subsystems don't work that way, You can achieve this by generating events from the states of the STATEFLOW chart. And using Function-call Subsystems instead of variant subsystem.
Refer this for more information.

カテゴリ

Help Center および File ExchangeComponent-Based Modeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by