Filter löschen
Filter löschen

Issues using Simulink Coder to generate Veristand-compatible C code

14 Ansichten (letzte 30 Tage)
Ishita Ray
Ishita Ray am 3 Mai 2023
Beantwortet: Ayush am 11 Sep. 2023
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.

Antworten (1)

Ayush
Ayush am 11 Sep. 2023
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

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by