How to programmatically modify simulink.signal object in sldd

4 ビュー (過去 30 日間)
Somdut Dey
Somdut Dey 2020 年 8 月 27 日
コメント済み: Sudhakar Shinde 2020 年 9 月 24 日
Hi,
I am trying to modify datatype of exisiting simulink.signal object programmatically. I am unable to get simulink.signal object using the following code.
ddName = 'MySldd.sldd';
dicObj = Simulink.data.dictionary.open(ddName);
secObj = getSection(dicObj,'Design Data');
foundEntries = find(secObj,'-isa','Simulink.Signal');
foundEntries is returning 0.
even if I run the following code I get all the parameter object but not the signal object.
foundEntries = find(secObj)
How to acces datatype of simulink.signal object and modify it?

採用された回答

Sudhakar Shinde
Sudhakar Shinde 2020 年 9 月 24 日
編集済み: Sudhakar Shinde 2020 年 9 月 24 日
ddName = 'MySldd.sldd';
dicObj = Simulink.data.dictionary.open(ddName);
secObj = getSection(dicObj,'Design Data');
SigEntries = find(secObj,'-value','-class','Simulink.Signal')
  2 件のコメント
Somdut Dey
Somdut Dey 2020 年 9 月 24 日
Thank you.
Sudhakar Shinde
Sudhakar Shinde 2020 年 9 月 24 日
Welcome

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall C from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by