필터 지우기
필터 지우기

s function builder through comment line

조회 수: 1 (최근 30일)
sri prakash muniyandi
sri prakash muniyandi 2014년 10월 30일
댓글: sri prakash muniyandi 2014년 11월 8일
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
sri prakash muniyandi 2014년 11월 8일
@ 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
sri prakash muniyandi 2014년 11월 8일
@ 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