alternate effect in simulink scheme

조회 수: 1 (최근 30일)
Alejandro Fernández
Alejandro Fernández 2020년 11월 9일
댓글: Alejandro Fernández 2020년 11월 9일
Hello, someone would know how to modify the simulink project that I am enclosing so that by means of some button or something that could be activated in the own scheme, the blocks that I mark with the red line would be eliminated and the input and output would be connected as I show with the green line.
The idea would be to be able to have these two schemes that I show next but only in one and that could be alternated from one to another by means of some button or similar

채택된 답변

Paul
Paul 2020년 11월 9일
편집: Paul 2020년 11월 9일
Generate both inputs into C2 and pass them through a Multi-Port Switch. Do the same for the inputs to the Scope. You can then set the Control Input to the Multi-Port Switches with an output from a Constant block with a parameter you set in the base workspace to select the configuration you want. This appraoch doesn't eliminate blocks from the diagram, but functionally achieves what you're looking for. If you really need to select the configuration with a button click, use a Manual Switch output as the control input to the Multi-Port switches. This approach will only work if you have only two configurations.
  댓글 수: 3
Paul
Paul 2020년 11월 9일
Here's a simple example; perhaps you can adapt it to your needs:
Alejandro Fernández
Alejandro Fernández 2020년 11월 9일
Yes!!, that's fine for me :D. Thank you very much for everything.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by