Simulink - Mask Editor - get_param
2 ビュー (過去 30 日間)
古いコメントを表示
I created a subsystem "Contact" (see Figure 1). With the maskeditor I would like to be able to enter my subsystem variables.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168186/image.jpeg)
The Subsytem contact contains a self-defined Simulinkblock with a ssc.-file (Fig. 2). In this ssc file are the variables and parameters which I would like in my Subsytem contact, in the mask representation. (Picture 3)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168188/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168190/image.jpeg)
I have to solve the problem with get_parm, unfortunately there are only error messages or question marks.
How to access variables from other subsystems? For example. the values of display when the simulation is complete and no longer running?
0 件のコメント
回答 (1 件)
Ashish Azad
2020 年 6 月 24 日
The path you are using in string should be in string format:
e.g: get_param("KontactSimulation/Kontact/test")
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Author Block Masks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!