how to set application data to an s-function using s-function wizard

조회 수: 2 (최근 30일)
arun kumar
arun kumar 2015년 3월 20일
댓글: giga 2016년 5월 1일
i am trying to modify an s-function block using command line
blkNames = find_system(bdroot,'lookundermasks','all','BlockType','S-Function');
for blkIdx = 1:numel(blkNames)
blkHandle = get_param(blkNames{blkIdx}, 'Handle');
appdata = sfunctionwizard(blkHandle,'GetApplicationData');
appdata = sfunctionwizard(blkHandle,'Build',appdata);
end
this code allows me to build an s-function from command line and the appdata is a structure which has all the information like s-function name, inports, outports , their datatype etc. can i modify the appdata and write it back to the s-function block using the s-function wizard?
  댓글 수: 1
giga
giga 2016년 5월 1일
Hi did you find any solution? I am interested in the same problem! Thanks

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by