S-Function Builder C++
3 次查看(过去 30 天)
显示 更早的评论
I have C++ class with multiple methods and header file associated with it. I am unable to figure out (using s-function builder block) how to pass arguments to these functions which are the inputs to the s-function. In other words I am not able to figure out how to map the inputs of the s-function from simulink to the arguments of my class method.
0 个评论
回答(1 个)
Mark McBroom
2019-2-2
2 个评论
Sascha
2024-8-9
The link is broken. I have the same application, are there any examples or documenation which covers this?
Mark McBroom
2024-8-9
The C Function block is now the recommended approach for calling external C++ code. See this example: Call C++ Class Methods Directly from a C Function Block - MATLAB & Simulink (mathworks.com)
另请参阅
类别
在 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!