Switches and if blocks wrong behavior?

조회 수: 1 (최근 30일)
Lennart
Lennart 2011년 11월 22일
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일
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개)

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by