필터 지우기
필터 지우기

Disabled a button with Simulink

조회 수: 6 (최근 30일)
Eloise Paper
Eloise Paper 2020년 6월 3일
답변: Fangjun Jiang 2020년 6월 3일
Hello everyone !
I work on an project which is the following : I have to disable a button according to different conditions during simulation.
I tried to comment out the button automatically with a matlab function but I had an error.
So I guess I cannot comment out automatically a block when the simulation is running.
Do you have any ideas how it would be possible to disable a button instead of commenting out the button ?
Thank you for your help !
Eloise

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2020년 6월 3일
Try this. Put all those blocks inside an Enabled Subsystem. Use your logic to Enable/Disable the subsystem.

카테고리

Help CenterFile Exchange에서 Create Large-Scale Model Components에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by