フィルターのクリア

How can I find 'Compare to Constant' Blocks by using find_system? When I go explicit to the 'Compare to Constant' Block, get_param('path of Compare to Constant','BlockType'); gives "SubSystem" and not "Compare To Constant". (Matlab R2010b))

5 ビュー (過去 30 日間)
Robin Leuering
Robin Leuering 2015 年 12 月 18 日
回答済み: hari 2020 年 1 月 20 日
open('modelname.mdl');
sys = struct('path',[],'handle',[]);
sys.path = find_system(gcs);
find_system(sys.path{1,1},'BlockType','SubSystem');
find_system(sys.path{1,1},'BlockType','Compare To Constant');

回答 (1 件)

hari
hari 2020 年 1 月 20 日
@Robin Leuering ,you can use its parameters to find the block.
syntax:
find_system(sys.path{1,1},'MaskType','Compare To Constant');

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by