Is it possible to call with a S-Function C routines that includes Assembler libraries?
Mostrar comentarios más antiguos
Hi,
i'm developing in simulink a model to be later generated in C++ code for the Texas Instruments - TI Target f28027 of the µC family C2000.
Part of my model needs to compute the FFT but if I generate the code with the Simulink blocks, all the operation in the generated code will be compute at the SW level and that will take longer than if I use the optimized libraries from Texas Instruments.
The point is that the FFT libraries from TI are coded in Assembler for this target, there is an example in C Code that includes the assembler lib to compute the FFT.
My question is, if it would be possible to call the FFT example C that uses the assembler libaries as S-Function in simulink. So, when I generated the code for the target I get automatically the necessary code to compute the FFT.
Thank you in advance and regards!
David
Respuestas (2)
Titus Edelhofer
el 12 de Ag. de 2011
0 votos
Hi David,
yes, you can. You will need to write the .tlc-File for the code generation though. An alternative would be to use either S-Function Builder or Legacy Code Tool, because they will generate the .tlc file for you.
Titus
David Rodriguez
el 12 de Ag. de 2011
0 votos
Categorías
Más información sobre C2000 Microcontroller Blockset en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!