Clear Filters
Clear Filters

legacy code in an input port

1 view (last 30 days)
Michael
Michael on 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 Comments
TAB
TAB on 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 on 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

Sign in to comment.

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!