how to set up a entity gate to open and close based on situations encountered?

1 回表示 (過去 30 日間)
Rita Ang
Rita Ang 2019 年 3 月 5 日
コメント済み: Rita Ang 2019 年 3 月 8 日
My process runs as such: A-> B -> C.
How do I get an entity gate which I've put in before A to open and then close at the point B sees 30 entities?
Then at point C, I want to reopen that entity gate.

回答 (1 件)

Krishna Akella
Krishna Akella 2019 年 3 月 7 日
Hi Rita,
I assume 'A', 'B' and 'C' are SimEvents blocks. In which case, you can use the statistics signals from 'A', 'B' and 'C' to achieve what you want by combining the signals with Simulink blocks to implement your logic. You can then use the 'Message Send' block to convert the logical signal to an entity that operates the 'Entity Gate'.
To give you an idea, I have attached an image that shows constant and mod blocks being used to drive the entity gate. You can add more logic along similar lines to achieve what you want.EntityGateOperation.png
Krishna
  1 件のコメント
Rita Ang
Rita Ang 2019 年 3 月 8 日
Hi Krishna,
Thanks for the response. Could I know what logic would need to be put in to open and close the entity gate?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete-Event Simulation についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by