필터 지우기
필터 지우기

Enabling multiple outputs using SIMULINK

조회 수: 28 (최근 30일)
Sultan
Sultan 2016년 1월 11일
편집: Adithya Addanki 2016년 1월 13일
Is there anyway I can enable multiple outputs in a model in SIMULINK ? Its like I'm making a subsystem comprising of the blocks In1,Complex to Magnitude-Angle, Out2,Out3. This system allows me to get 2 outputs and similarly if I want to have more outputs I just simply add the Complex to Mag-Angle block to the path.So when I setup Mask for the subsystem I can initialize two outputs. I want to make a drop-down menu (input field) in mask so as to enable the desired outputs, whether it may be 2 or 3 and by doing so only the desired outputs are initialized or active.
I have been following the example mentioned on:
But I'm unable to replicate it for the outputs.
  댓글 수: 1
Adithya Addanki
Adithya Addanki 2016년 1월 13일
편집: Adithya Addanki 2016년 1월 13일
Hi Sultan,
I think you are in the right direction of achieving it. However, you may need to modify the callback code a bit in your case.
You will need to initialize the mask and in the callback corresponding, you need to make use of the "add_block" and "add_line" functions to add the out blocks and connect them to relevant ports. The number of blocks may be dependent on the value you set.
Thank you,
Adithya

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

답변 (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