Is it possible to use TI IQmath in S-functions.
Show older comments
I ve written a controller code for TI DSP 320F28035. It uses IQmath library. I want to check this code in Simulink. I want to use IQmath (or) its equivalent in S-function to check the C code. Does MATLAB (or) a third party has some library equivalent to IQmath of TI?
Answers (1)
Kaustubha Govind
on 22 Sep 2011
0 votes
AFAIK, IQmath libraries cannot be executed on host-based platforms. So you cannot call into them directly from S-functions, because they are used for simulation on Windows/Linux/Mac platforms. What you can do however is create an S-function that performs equivalent operations using host-based libraries and provide a TLC file that generates IQmath code if you'd like to generate code from your model. For example, here are some Simulink blocks for C64x+IQMathLibrary: http://www.ti.com/tool/sprc590 that seem to have been developed by the same principle.
However, if you do know that IQmath libraries can be executed on the host and are compatible with one of the compilers supported for Simulink (see http://www.mathworks.com/support/compilers/previous_releases.html), you should be able to write an S-function to call into them.
Categories
Find more on Simulink Coder 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!