Switches and if blocks wrong behavior?

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 个评论

Hi Lennart, I can see the system but the link to the output seems not to work ...?
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
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

更多回答(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