Borrar filtros
Borrar filtros

legacy code in an input port

1 visualización (últimos 30 días)
Michael
Michael el 20 de Sept. de 2011
Hi,
I am looking to incorporate legacy c code into a simulink input port. I remember being told that this was possible, but have no idea where to start. I have the embedded coder products. The C code will be driver type code, and will be conditionally built dependent on the target. Any pointers are greatly appreciated. Thanks. Michael.
  2 comentarios
TAB
TAB el 20 de Sept. de 2011
Legacy code tool is used to integrate the existing C functions into simulink model by generating s-function from them.
Find on http://www.mathworks.in/help/toolbox/simulink/sfg/bq4g1es-1.html
What do you mean by 'legacy c code into a simulink input port'?
Please explain what you want to do.
Michael
Michael el 20 de Sept. de 2011
Hi, I have used the legacy code tool before, and could use it again. The c code is not algorithmic, but is an interface driver. I have been looking over the embedded coder documentation, in particular mpt signal objects. with an mpt signal object it seems I can set a store class as GetSet, and supply c code for the GetSet function.
Just making sure I was going along the correct route.
Thanks, Michael

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by