Is it possible to call with a S-Function C routines that includes Assembler libraries?
Show older comments
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
Answers (2)
Titus Edelhofer
on 12 Aug 2011
0 votes
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
on 12 Aug 2011
0 votes
Categories
Find more on Texas Instruments C2000 Processors 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!