Borrar filtros
Borrar filtros

s function builder through comment line

1 visualización (últimos 30 días)
sri prakash muniyandi
sri prakash muniyandi el 30 de Oct. de 2014
Comentada: sri prakash muniyandi el 8 de Nov. de 2014
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 comentario
sri prakash muniyandi
sri prakash muniyandi el 8 de Nov. de 2014
@ 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

Iniciar sesión para comentar.

Respuesta aceptada

Manuel
Manuel el 31 de Oct. de 2014
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 comentario
sri prakash muniyandi
sri prakash muniyandi el 8 de Nov. de 2014
@ 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.

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by