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.
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)
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!