필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Sending input to an embedded block in simulink only at a particular condition

조회 수: 3 (최근 30일)
Muthappa
Muthappa 2011년 9월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
I wanted to know how can I send a value to an embedded matlab block in simulink only for a particular condition.
I tried using the switch block, but the problem with that is during the times when the condition doesnt satisfy, a DEFAULT value should be sent which doesnt serve my purpose.
I tried using switch case block, but the problem is I am not allowed to use more than one active subsystem incase of switch case block.
To be specific:
I have a simulink model in which, a value (which is clock time at a particular condition which is dependent on output of another block) has to be sent to an embedded matlab block. I do not want to send any other value to the block except at that particular condition. Is there a way to do this? Kindly let me know.
Thanks!!

답변 (2개)

TAB
TAB 2011년 9월 28일
Place your source of 'value' in 'Enabled Subsystem' and enable this susystem when your condition is satisfied.
Find at Library browser > Ports & Subsystems > Enabled Susystem

Muthappa
Muthappa 2011년 9월 28일
Hi Tabrez,
Thank you very much for your reply. I will try using enabled system.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by