Is it possible to programmatically insert a figure on a form-based report using Simulink Report Generator?
1 view (last 30 days)
Show older comments
Gerardo Felix
on 17 Aug 2020
Answered: Rahul Singhal
on 17 Nov 2020
By programmatically, what I was specifically thinking about was using the "Evaluate MATLAB Expression" component from the Report Explorer. I've figured out how to add a table programmatically to a new report that was also created programmatically, but I can't figure out how to add a table to a report created via the Report Explorer.
What I'm trying to achieve is for each Simulink diagram, I'd like a table that shows all Constant blocks and their properties. These Constant blocks will almost always be using a variable from a Data Dictionary, so I'd like to display those values on the table as well.
Because the table is so complex relative to the Simulink Report Generator components, I figured it would have to be done programmatically. I'm open to any other solutions though.
0 Comments
Accepted Answer
Rahul Singhal
on 17 Nov 2020
Hi Gerardo,
We highly recommend using the programmatic Report API over the Report Explorer to generate custom Simulink reports.
Report API provides reporters like slreportgen.report.SimulinkObjectProperties to reports on block properties, slreportgen.report.ModelVariable to report on variables used by a model, and slreportgen.report.DataDictionary to report on data dictionary content.
Below links can be helpful to learn more and get you started:
-Rahul
0 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Report Generator in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!