Is there functionality to have a distributor block in Simulink?

2 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
I want to have a Simulink block that behaves as a distributor. This block would have one input and several outputs. Based on the simulation time, the input would be distributed to the correct output.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
The ability to use a distributor block is not available in Simulink.
To work around this issue, you can write your own S-function that performs this functionality. Specifically, the code would go in the mdlOutputs() function of the S-function.
The code can use the "ssGetT" macro to receive the simulation time. Depending on the simulation time, it could assign each of the blocks outputs to the correct value.
Another option is to use Enabled Subsystems to distribute a signal based on simulation time.

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by