I need an entity gate that I can open and close based on an entity attribute.

2 ビュー (過去 30 日間)
I'm writing a model for a production facility that needs to go through a cleaning cycle every 30 or so batches, and then goes back to production.
I've thought through two solutions (but havent gotten to work):
  1. Use a entity gate that opens and closes - but I cant find an example of how to open then close then open based on an attribute.
  2. Use a switch that sends the entity down a cleaning path or a production path.
Any suggestions?

採用された回答

Krishna Akella
Krishna Akella 2019 年 3 月 7 日
編集済み: Krishna Akella 2019 年 3 月 7 日
Hi Andrew,
The easiest way to do this is to use the 'Simulink Function' block and call the Simulink function from an event action. You can make use of the 'Message send' block to convert the signal to an entity. By making the Simulink function output a '0' or a '1', you can either close or open the gate. The below image illustrates a simple example:
Krishna
  1 件のコメント
Andrew Rutter
Andrew Rutter 2019 年 3 月 8 日
Many thanks for the quick response. I will give it a go.

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by