- In order to generate code for the s-function, you must place the tlc file in the same folder of S-function. TLC means Target Language Compiler, Which is used to customize the code building process.
- You opt S-function because none of Simulink library blocks Can perform what you really want to do, So you customized a Simulink Block according your requirment. In the same you need to guide MATLAB Coder With Customized building process to generate code for your Customized block.
Why can't I build model in Simulink which contains a S-function?
10 次查看(过去 30 天)
显示 更早的评论
I'm learning the S-function with the examples in the Matlab, but I failed to build model of the examples. What is confused is that I could run the examples and went through the simulation when the building is blocked.I'm wondering why I can run the S-function but came across various errors, such as the lack of tlc files, the inappropriate configuration of the solver type, when I tried to build model. Many thanks!
0 个评论
采纳的回答
Easwar Kumar Yarrabikki
2017-1-25
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Block and Blockset Authoring 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!