Issues using Simulink Coder to generate Veristand-compatible C code
6 views (last 30 days)
Show older comments
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 Comment
Answers (1)
Ayush
on 11 Sep 2023
Hi @Ishita Ray
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:
- Go to *_rtw (model_name_rtw) folder after code generation.
- Find html folder.
- Within html folder open the html file for contents (model_name_contents.html).
- Click Code Interface Report.
You can refer to these documentions to read futher about HTML file generated after code generation:
- https://www.mathworks.com/help/rtw/ug/reports-for-code-generation.html
- https://www.mathworks.com/help/rtw/ug/analyze-the-generated-code-interface.html
Thank you,
Ayush
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!