- https://www.mathworks.com/help/matlab/ref/mex.html
- https://www.mathworks.com/help/matlab/matlab_external/version-compatibility.html
The Simulink Bus/StructType 'sigStructTypeIn' definition has changed since the S-Function was generated.
2 ビュー (過去 30 日間)
古いコメントを表示
The Simulink Bus/StructType 'sigStructTypeIn' definition has changed since the S-Function was generated.
I have integrated S-function with 2 different componet and getting above error.
When I am running S-function separately I am not getting error.
0 件のコメント
回答 (1 件)
Ashutosh Thakur
2024 年 1 月 22 日
Hi Anand,
The error message indicates that their is a mismatch between the expected data structure (Bus/StructType) which is used by the S-Function as compared to the actual structure which is being provided to it when it is integrated with the two components.
In general, when you are trying to use a S-Function mex which is generated in the older release in a more recent release, this issue occurs.
When you are trying to upgrade to a new release and this error occurs then try to regenerate all the MEX files which are present in different components such that they are of same version. The "mex" command can be used to generate latest MEX file according to the release.
Kindly follow the below documentation link below to have more understanding regarding the "mex" command:
I hope by regenerating all the MEX files present in different components helps you in resolving this issue.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!