Effacer les filtres
Effacer les filtres

legacy code in an input port

1 vue (au cours des 30 derniers jours)
Michael
Michael le 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 commentaires
TAB
TAB le 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 le 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

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Deployment, Integration, and Supported Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by