set_param invalid setting error
显示 更早的评论
I'm trying to set the variant subsystem of a simulink model from matlab, by the set_param function.
The model has some already done subsystems and I added 2 new subsystems (test1 and test2); If I set one of the already done subsystems it works, but if I try to set one of the new variant subsystems it doesn't works.
I called the new subsystems test1 and test2, also in the variant choice table of the block parameter.
If I use this command it works:
set_param(['sm_car' '/World'],'popup_scene','Road Two Lane');
but with this command it doesn't works:
>> set_param(['sm_car' '/World'],'popup_scene','test1');
The error is:
Invalid setting in Environment block (mask) 'World' for parameter 'popup_scene'
Caused by:
Option specified is not valid.
Why?

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Subsystems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!