How to switch simulink blocks using a parameter?

조회 수: 2 (최근 30일)
Martin
Martin 2017년 1월 18일
댓글: Martin 2017년 1월 26일
Hello,
in my Simulinkmodel I want to test different controller blocks. In my "Input Generation"-block I implemented 4 different controllers. Everytime I want to test another controller, I have to remove the input and output connections and make new connections for the new block by hand which is quite annyoing. Is there a way to to this with a parameter? Say if some constant c is equal to 1, I want Controller 1 to be connected to the input and output ports of "input generation" and so on. Thanks for your help.

채택된 답변

Jordan Ross
Jordan Ross 2017년 1월 24일
Hello Martin,
What you are going to want to use is actually is a "variant subsystem". The following documentation page discusses what they are:
However, of more interest to you is the following documentation page which contains an example of modeling different variants of controllers:
  댓글 수: 1
Martin
Martin 2017년 1월 26일
Thanks Jordan! This is, what I was looking for.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by