Simulink Switch Case Block does not update

Hello all together,
I am quite new to Simulink and currently trying to build a model that has two major different states which both can occure during simulation. The two states have different model parameters but feed in exactly the same model.
My thought to do this was to use a switch-case block. By varying the input to 0 or 1 the corresponding model parameters should be used. But here comes the problem: The Action Port only seems to update once. Even when the input of the switch oscillates the output stays the same.
I added the relevant part of the model here:
I would really appreciate your help.
Thanks in advance.
Kind regards, Matthias

댓글 수: 1

Robert Fennis
Robert Fennis 2016년 7월 12일
I don't quite know enough but why don't you simply calculate both signals at all times using the different parameters and use switch blocks to decide which output signal is fed through?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

제품

질문:

2016년 7월 12일

댓글:

2016년 7월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by