How to initialize SimStruct from C code?
Show older comments
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?
Accepted Answer
More Answers (1)
yh h
on 6 Nov 2019
0 votes
where can I fined the "SimStruct"at the matlab dir?
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!