simulink code generation error !!!
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Onur Isbecer
am 7 Jul. 2014
Kommentiert: Onur Isbecer
am 7 Jul. 2014
Hi everybody !
I have some problems with code generation. my generated code looks like okay. But if I make some implementation with this code to another main C-Script, the variables don't suit together :/ I see this error:
incompatible types when assigning to type ‘real_T’
can anybody tell me please where is the problem ? what should I chance to have the right variable type
thanks in advance
Best Regards Onur
2 Kommentare
Anthony Poulin
am 7 Jul. 2014
I think the type real_T is defined in the header file "tmwtypes.h", do you have include it?
Akzeptierte Antwort
Titus Edelhofer
am 7 Jul. 2014
You should include the generated header file for the model, it should contain all necessary includes.
Titus
3 Kommentare
Titus Edelhofer
am 7 Jul. 2014
Don't use the rtwtypes.h but the "modelname".h. It includes types, function headers etc.
Regarding the error: you will need to tell your compiler where to find it (command line it's the "-I" switch).
Titus
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Coder 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!