Issues using Simulink Coder to generate Veristand-compatible C code

14 次查看(过去 30 天)
I have installed the three required support packages to generate Veristand compatible models: VeriStand Model Generation Support, MATLAB Support for MinGW-w64 C/C++ Compiler, and C/C++ Development Tools for NI Linux Real-Time 2017. When I use Simulink Coder in R2020b or R2021a, the Ports, Parameters and Signals Readme files are missing in the rtw folder.
I installed 2019b since my colleague is able to generate a full set of files using that version, installed all the support packages but I cannot even complete the build. It terminates with this error:
The call to veristand_make_rtw_hook, during the before_make hook generated the following error: 'ModelParameters' is not a valid DataInterface Type. The valid DataInterface Types are described by 'getAllDataInterfaceTypes' method on the CodeDescriptor object
The build process will terminate as a result.
Caused by:
  • 'ModelParameters' is not a valid DataInterface Type. The valid DataInterface Types are described by 'getAllDataInterfaceTypes' method on the CodeDescriptor object
Oddly enough, the coder in 2019b is able to succesfully the complete the build for a generic target. I'm not sure where the issue is coming from.
I would appreciate a solution for either of these issues but I would prefer to be able to generate the necessary ports and parameters text files using R2020b.

回答(1 个)

Ayush
Ayush 2023-9-11
I understand that you are searching for Ports, Parameters and Signals Readme files after code generation. The individual Ports, Parameters, and Signals Readme files are no longer generated by default. Instead, a comprehensive HTML code generation report is generated. This report provides detailed information about the generated code, including ports, parameters, and signals.
Follow the steps to access HTML report:
  1. Go to *_rtw (model_name_rtw) folder after code generation.
  2. Find html folder.
  3. Within html folder open the html file for contents (model_name_contents.html).
  4. Click Code Interface Report.
You can refer to these documentions to read futher about HTML file generated after code generation:
  1. https://www.mathworks.com/help/rtw/ug/reports-for-code-generation.html
  2. https://www.mathworks.com/help/rtw/ug/analyze-the-generated-code-interface.html
Thank you,
Ayush

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by