s function builder through comment line

2 次查看(过去 30 天)
Hi
I just want to know how to set the s function builder block parameters through Matlab comments.
For example : I want add on input port in my s function builder block. I’ll go directly Data Properties pane and click add and I’ll give my own names to my input variable.
Consider the same operation I just want to do in programmatically through matlab comments. If give same sample code it’s healthier to my understating.
Regards, Sri Prakash Muni
  1 个评论
sri prakash muniyandi
@ Manuel Thanks for your answer. i also came to know the same after long some time. so now am trying with LCT. if you know about LCT Please share your knowledge to me.
And i have some specific questions about LCT data structures.
My Questions:
SFunctionName: ''
InitializeConditionsFcnSpec: ''
OutputFcnSpec: ''
StartFcnSpec: ''
TerminateFcnSpec: ''
HeaderFiles: {}
SourceFiles: {}
HostLibFiles: {}
TargetLibFiles: {}
IncPaths: {}
SrcPaths: {}
LibPaths: {}
SampleTime: 'inherited'
Options: [1x1 struct]
1 ) I have some main *.h & *.c files. i'll mention those files in HeaderFiles: {} SourceFiles: {}.
and i have some more .H and .C filse in different path so i have collected those path in a cell array of two variables as header file in one and C file in another variable after this i assign those variable to LCT structure IncPaths: {} and LibPaths: {}. But it's not workout for me.
So i want to know how to give some extra .C & .H file and some header and .c file paths in the LCT Data Structure
What ever you know about LCT are if you have any reference path or any document regarding LCT please share with me.
Thanks & Regards,
Sri Prakash Muni

请先登录,再进行评论。

采纳的回答

Manuel
Manuel 2014-10-31
Hi,
well you cannot interface with the S-Function builder programmatically in MATLAB. As an alternative, you have the legacy code tool that enables generating s-function blocks with scripts.
Regards, Manuel
  1 个评论
sri prakash muniyandi
@ Manuel Thanks for your answer. i also came to know the same after long some time. so now am trying with LCT. if you know about LCT Please share your knowledge to me.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by