How to initialize SimStruct from C code?
Ältere Kommentare anzeigen
I exported my Simulink model to C code by using "rtwsfcn.tlc". The output code for the S-Function was generated successfully.
Now I want to import this S function directly in a C project. So what I did is something like this.
SimStruct *S = (SimStruct *)malloc(sizeof(SimStruct));
mdlInitializeSizes(S); ... ...
But it gives some runtime error. Can anyone tell me the proper way to initialize SimStruct directly in C without using Matlab?
Akzeptierte Antwort
Weitere Antworten (1)
yh h
am 6 Nov. 2019
0 Stimmen
where can I fined the "SimStruct"at the matlab dir?
Kategorien
Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!