Drop-down menu in simulink

조회 수: 11 (최근 30일)
tareq Azaar
tareq Azaar 2019년 5월 14일
댓글: tareq Azaar 2019년 5월 15일
Hi every one,
After long search, I was not able to find a proper answer for my request. Instead of using a simple constant block, I would like to insert a BLOCK in the simulink as an input data( constant input). This block should be as a DROP-DOWN menu. For example: when I click on it, it will give me three options for the temprature and I can choose one of them as an input to my system.
please support me if any one has and idea or solution.
Thank you

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019년 5월 14일
Hi,
One idea of creating drop-down option for input constant is to have this block under a subsystem that have to be converted into a mask. Then using Mask edit options: Popup control GUI button and Popup options, intialization options...
if you'd like to create not a drop-down but just a user entry box option, then it is much simpler.
Good luck.
  댓글 수: 2
tareq Azaar
tareq Azaar 2019년 5월 15일
Thank you very much, the idea is nice. However, I have tried to use Popup control and insert a three values of tempratures in the (" type options" "from property editor " ). Now, I noticed that the parameter value of the constant didn't changed when I choose the second or third temperature value from the pop up list, it keeps showing the same result of the first temprature !!!
I think I missed somthing about linking the pop up values with the parameter value inside the subsystem ?
thank u again
tareq Azaar
tareq Azaar 2019년 5월 15일

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by