Embedded Coder Error: Number of fields in structure arrays being concatenated do not match. Concatenation of structure arrays requires that these arrays have the same set of fields.
2 ビュー (過去 30 日間)
古いコメントを表示
I've created a mock empty model that captures an error I am getting on my real working model. Despite having almost empty code-generation products, I get the following error when I try to Build my "ExampleModel":
Number of fields in structure arrays being concatenated do not match. Concatenation of structure arrays requires that these arrays have the same set of fields.
Here are my current versions for the products I am using:
----------------------------------------------------------------------------------------------------
MATLAB Version: 9.2.0.538062 (R2017a)
MATLAB License Number: 880864
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 14393)
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Version 9.2 (R2017a)
Simulink Version 8.9 (R2017a)
Control System Toolbox Version 10.2 (R2017a)
Embedded Coder Version 6.12 (R2017a)
MATLAB Coder Version 3.3 (R2017a)
Simulink 3D Animation Version 7.7 (R2017a)
Simulink Coder Version 8.12 (R2017a)
MEX configured to use 'Microsoft Visual C++ 2015 Professional (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. You will be required
to update your code to utilize the new API.
You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
Any help would be greatly appreciated!
0 件のコメント
回答 (1 件)
Nick Sarnie
2017 年 9 月 6 日
編集済み: Nick Sarnie
2017 年 9 月 6 日
Hi Bryan,
This error is a bug in Embedded Coder R2017a that occurs when the "Show code metrics" option listed in Configuration Parameters>Code Generation>Report is checked, and a model reference block has no generated code associated with it.
There is a patch available to fix this issue, with installation instructions, located here: https://www.mathworks.com/support/bugreports/1588837
If you cannot apply the patch, a workaround is to add an input and output port, and feed the signal directly through, to force the model references to generate code.
2 件のコメント
Nick Sarnie
2018 年 1 月 5 日
Hi Bryan,
Please make a technical support case if you are still running into this issue.
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!