필터 지우기
필터 지우기

How to programmatically modify simulink.signal object in sldd

조회 수: 25 (최근 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')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by