Open AndreasHofmann217 opened 12 months ago
Trying to generate a simple input -> gainblock -> output ME-FMU using Matlab/Simulink 2020b fails. Error rises from CreateSimStructForFMI as mdlInfoSLSIze is not part of S->blkInfo.blkInfo2 respectively _ssBlkInfo2 struct in simstrc_def.h.
SimStruct` *CreateSimStructForFMI(const char* instanceName) { SimStruct *S = (SimStruct*)calloc(1, sizeof(SimStruct)); if (S == NULL) { return NULL; } S->mdlInfo = (struct _ssMdlInfo*)calloc(1, sizeof(struct _ssMdlInfo)); if (S->mdlInfo == NULL) { return NULL; } S->blkInfo.blkInfo2 = (struct _ssBlkInfo2*)calloc(1, sizeof(struct _ssBlkInfo2)); if (S->blkInfo.blkInfo2 == NULL) { return NULL; } S->blkInfo.blkInfo2->mdlInfoSLSize = (struct _ssMdlInfoSLSize*)calloc(1, sizeof(struct _ssMdlInfoSLSize)); if (S->blkInfo.blkInfo2->mdlInfoSLSize == NULL) { return NULL; } _ssSetRootSS(S, S); ...
Model does work fine with FMIKit 3.0 and Matlab/Simulink 2020b as the part is missing
SimStruct *CreateSimStructForFMI(const char* instanceName) { SimStruct *S = (SimStruct*)calloc(1, sizeof(SimStruct)); if (S == NULL) { return NULL; } S->mdlInfo = (struct _ssMdlInfo*)calloc(1, sizeof(struct _ssMdlInfo)); if (S->mdlInfo == NULL) { return NULL; } _ssSetRootSS(S, S); ...
Not an issue for my application, since FMIKit 3.0 should be good enough. Wanted to give feedback anyways.
Best regards, Andreas
I have the same issue only in Matlab 2021a
Trying to generate a simple input -> gainblock -> output ME-FMU using Matlab/Simulink 2020b fails. Error rises from CreateSimStructForFMI as mdlInfoSLSIze is not part of S->blkInfo.blkInfo2 respectively _ssBlkInfo2 struct in simstrc_def.h.
Model does work fine with FMIKit 3.0 and Matlab/Simulink 2020b as the part is missing
Not an issue for my application, since FMIKit 3.0 should be good enough. Wanted to give feedback anyways.
Best regards, Andreas