How to configure S-Function Builder from command line?

조회 수: 10 (최근 30일)
Jose Alejandro
Jose Alejandro 2013년 2월 15일
답변: kiyoko 2018년 7월 24일
The graphical interface used to configure S-Function builder is nice. However, for larger projects it makes code maintainance hard.
It might be better to have scripts that can be ran to configure several S-Functions inputs, outputs, states, parameters sizes and types automatically all at once.
How would I configure, for example, number of inputs, name, type and size and dimension of an S-Function builder from the command line?
Thanks, Jose Ospina

채택된 답변

TAB
TAB 2013년 2월 15일
편집: TAB 2013년 2월 15일
See this solution on how to use s-function builder using command line.
Get S-function builder data with
appdata = sfunctionwizard(BlockHandle,'GetApplicationData');
Use appdata.SfunWizardData to read and write field data of S-function builder.
You can use sfunctionwizard to build the s-function builder from matlab command.
  댓글 수: 4
TAB
TAB 2013년 2월 22일
I am not sure whether it is available in 2007B (I don't have 2007b to check this).
If it is not there in 2007b then you can use Legacy Code Tool. Legacy code tool is available in R2007b.
giga
giga 2016년 5월 1일
Hi, I tried to modify the appdata.SfunWizardData as described in these Matlb questions: 1 , 2 . However, the changes made to the appdata.SfunWizardData gets overwritten. I am using Matlab 2015a. Can anyone suggest how to make changes back to the SFunction Builder? Thanks!

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

추가 답변 (1개)

kiyoko
kiyoko 2018년 7월 24일
sfunctionwizard is undocumented and not officially supported. If you are looking for command-line s-function authoring functionality, then the legacy code tool is designed for this.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by