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:
https://de.mathworks.com/help/simulink/ug/interface-with-c-classes-using-c-function-block.html
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
SaschaMy 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:
https://de.mathworks.com/help/simulink/ug/interface-with-c-classes-using-c-function-block.html
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 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:
https://de.mathworks.com/help/simulink/ug/interface-with-c-classes-using-c-function-block.html
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 c++, integrate_c_code MATLAB Answers — New Questions