No block called 'AirFrame' could be found
Show older comments
'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??
Answers (1)
Diya Tulshan
on 26 Jun 2023
0 votes
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 Comments
Bentolila Yedidia
on 26 Jun 2023
Bentolila Yedidia
on 26 Jun 2023
Diya Tulshan
on 26 Jun 2023
Hope this did solve your problem!
Categories
Find more on Ports and Subsystems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!