I made a system with a switch but also a if action block. The behavior of both systems should be the same. The switch doesn't work and the if action block doesn't reset. I am expecting the same output as the input.
See the system here. And the output here.

2 件のコメント

Titus Edelhofer
Titus Edelhofer 2011 年 11 月 22 日
Hi Lennart, I can see the system but the link to the output seems not to work ...?
Lennart
Lennart 2011 年 11 月 22 日
Thanks for your response, I fixed the link.
The switch block now seems to work. But I can't make the if action system reset. I should go to zero again but it doesn't..

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

 採用された回答

Titus Edelhofer
Titus Edelhofer 2011 年 11 月 22 日

0 投票

Hi Lennart,
double click the output port in the if-action subsystem and do the following: (a) set the Initial Output to 0. (b) Set "Output when disabled" to "reset".
Titus

1 件のコメント

Lennart
Lennart 2011 年 11 月 22 日
Thanks! Would not have looked there!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Schedule Model Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by