Making a more user friendly simulink model

3 ビュー (過去 30 日間)
Rees Hatch
Rees Hatch 2018 年 5 月 31 日
回答済み: Rees Hatch 2018 年 6 月 1 日
Hi all,
I am using a Simulink model to simulate various outputs based off a few constant inputs. As of right now, I am editing the variables that are saved in the model workspace via the model explorer. The variables are setting the initial conditions for SimScape block temperatures and used for comparators. I want to be able to edit these variables by changing the numbers in a block window the looks similar to the display blocks on the main page of the model. By main page I mean that I have created subsystems within my model that contain the blocks that will be using these parameters. I was wondering if this would be possible to implement. I don't need to change the variables during the simulation. They just need to be loaded in at the beginning. I would prefer to do this with out adding extra input signals into the subsystems.
Please explain how this could be done or alternative ways of making it more user friendly.
Thanks,
Rees

採用された回答

Rees Hatch
Rees Hatch 2018 年 6 月 1 日
I found what I was looking for. It was simply a block called edit which allows direct access to edit any variable from any block in the model.

その他の回答 (1 件)

sloppydisk
sloppydisk 2018 年 5 月 31 日
Select the subsystem and press mask>edit mask or CTRL+M. Then go to parameters & dialog and you can add some Edit parameters corresponding to your variables. Now if you double-click the subsystem a dialog should pop up to edit the parameters.

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by