Problem solved, I had to change MINGW64 compiler settings to c++, otherwise adder class was not recognized and therefore couldn't be selected as paramet typer. 
How can I select custom type as parameter type in c-function block?
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu MATLAB Support for MinGW-w64 C/C++ Compiler finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
