How to configure S-function builder data from command line

1 回表示 (過去 30 日間)
CLEMENT
CLEMENT 2014 年 1 月 13 日
コメント済み: giga 2016 年 5 月 1 日
Hi,
I'm trying to configure S-function builder and to build the S-function from command line using sfunctionwizard. I would like to change the "appdata.SfunWizardData.LibraryFilesText" which was previously set in the GUI. The build operation works well but it overwrites my modifications and uses the previous LibraryFilesText.
The following example is inspired by
blkNames = find_system(model_list,'lookundermasks','all','BlockType','S-Function');
for blkIdx = 1:numel(blkNames)
blkHandle = get_param(blkNames{blkIdx}, 'Handle');
appdata = sfunctionwizard(blkHandle,'GetApplicationData');
appdata.SfunWizardData.LibraryFilesText = 'INC_PATH C:\Test';
appdata2 = sfunctionwizard(blkHandle,'Build',appdata);
end
Here after call of "appdata2 = sfunctionwizard(blkHandle,'Build',appdata);" appdata2.SfunWizardData.LibraryFilesText is equal to the text set in the GUI although appdata.SfunWizardData.LibraryFilesText is equal to 'INC_PATH C:\Test'
If I try to modify others properties (as appdata.SfunWizardData.GenerateTLC) I've the same behavior the build is made with the parameters set in the GUI, not with the parameters set in command line.
Is it the good way to deal with the configuration of S-function builder in command line?
Thanks, Clement.
  1 件のコメント
giga
giga 2016 年 5 月 1 日
Hi Clement, I am interested in the same problem. Did you find any solution? Thanks!

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeBlock and Blockset Authoring についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by