Is it possible to run a model containing S-functions with multiple sources in rapid accelerator mode? If so, how can it be done?
5 views (last 30 days)
Show older comments
I am currently trying to run a model with an S-function block which has 4 source files. After compiling the S-function to create the mexw32 file, I can successfully run the simulation in both normal and accelerator modes. However, when I try to run the simulation in rapid accelerator mode, the build process fails and the simulation is not carried out. Am I missing any pre-processing step for my S-function? I am not really very saavy in the use of S-functions. I've read about noninline and inline S-functions as well and see there may be a solution by creating a tlc file and wrapping my S-function, but again I have very little experience doing this so I do not know if it is the right path.
0 Comments
Answers (1)
Madhu Govindarajan
on 12 Nov 2015
You will need to write TLC Files to be able to use Rapid Accelerator mode - http://www.mathworks.com/help/simulink/ug/designing-your-model-for-effective-acceleration.html
Here is a link that can help you get started with writing TLC files - http://www.mathworks.com/matlabcentral/answers/41274-writing-a-tlc-file#answer_50873
0 Comments
See Also
Categories
Find more on Block and Blockset Authoring 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!