Filter löschen
Filter löschen

legacy code in an input port

1 Ansicht (letzte 30 Tage)
Michael
Michael am 20 Sep. 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 Kommentare
TAB
TAB am 20 Sep. 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 am 20 Sep. 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by