Add a drop-down menu in block parameters while creating a custom Simscape block ?
古いコメントを表示
Hello everyone,
I'm currently creating some custom blocks on Simscape, and I was wondering if it is possible to have a drop-down menu in the plock parameters ? As an example, the Hydraulic Piston Chamber with the parameter "Chamber orientation". Any ideas, or it is not allowed for users, as I expected ?
Thanks in advance
回答 (1 件)
Dimitris Iliou
2017 年 4 月 21 日
0 投票
In order to add a drop-down menu in the block parameters, you will need to add a mask to the custom Simscape block you are creating.
Once the Simscape library block is created using ssc_build, it should be locked. You can simply unlock it by clicking on the lock button on the bottom left of the Simulink pane.
Once you have the library block unlocked, you can edit the mask in the following location:
- Right-click on the block
- Mask
- Edit Mask
- Parameters & Dialog
You can find more details on how to modify the mask in the following documentation link:
- Is it possible to edit the mask properties of a component before using ssc_build to build the library?
カテゴリ
ヘルプ センター および File Exchange で Creating Custom Components and Libraries についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!