No block called 'AirFrame' could be found

조회 수: 5 (최근 30일)
Bentolila Yedidia
Bentolila Yedidia 2023년 6월 26일
댓글: Diya Tulshan 2023년 6월 26일
'Airframe' is a Subsystem in my Simulink model. Using set_param to change a parameter (Gain) value inside 'Airframe' it suceeds. But when trying to do the same for a Subsystem inside 'Airframe' it fails. Why??

답변 (1개)

Diya Tulshan
Diya Tulshan 2023년 6월 26일
Hii Bentolila Yedida,
I understand you are unable to change the gain parameter for a subsystem inside 'Airframe'.
The 'set_param' function allows you to modify parameters of Simulink blocks, including subsystems.To change a parameter value inside a subsystem that is nested within another subsystem, you need to specify the full path to the parameter you wish to modify.
Here's an example that describes the condition:-
set_param('Model/Airframe/SubsystemName','Gain','Value ');
For better understanding of the 'set_param', kindly refer to following link:-https://in.mathworks.com/help/simulink/slref/set_param.html
  댓글 수: 3
Bentolila Yedidia
Bentolila Yedidia 2023년 6월 26일
OK I found the problem: The Name of the Subsystem. Sometimes when entering the name we leave a blank space (at beginning or at the end) which cannot be easily noticed. Only by Checking in 'Properties' we can see the mistake.
Diya Tulshan
Diya Tulshan 2023년 6월 26일
Hope this did solve your problem!

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

카테고리

Help CenterFile Exchange에서 Ports and Subsystems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by