How can I select custom type as parameter type in c-function block?
显示 更早的评论
My main problem is that I want to use a custom device type Q16_t which is declared in a header file q16t.hpp. Because this file inlude several other header files, which also includes headerfile I have a big dependency tree.
In order to trim this problem to an easier starting point, I started with this example:
I added the source code, include headers and search directories as described in the example, but I am not able to select this class parameter. A picture of all parameter types which I can select is attached.
I tested to import it with Simulink.ImportExternalCTypes but this didn't have any effect.
I added include header, search directories and source files in C Function block as well as in the model settings simulation target pane to make sure, that files can be found. In model settings simulation target pane the validate custom code is executed without any errors. Did I miss an important setting in advanced parameter menue or anything else?
Any help is appreciated.
Kind regards
Sascha
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Support for MinGW-w64 C/C++ Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!