issue while setting mask parameter
17 ビュー (過去 30 日間)
古いコメントを表示
The "set_param" function will only update the model if the mask dialog is closed. If the mask dialog is open, the "set_param" command might not take effect, especially if the parameter is visible.
0 件のコメント
回答 (1 件)
Gayatri
2024 年 10 月 30 日 7:53
Hi Anuj,
To modify mask parameter values, use the 'Simulink.Mask' class.
% Get the Mask of the Subsystem
maskObj = Simulink.Mask.get('TestModel/SubSysName');
% Retrieve the Mask Parameter
paramObj = maskObj.getParameter('parameter_name');
% Set the Parameter Value
paramObj.set('Value', 'NewValue');
Please refer the below documentations for Simulink.Mast class:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Create Block Masks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!