Is it possible to programmatically insert a figure on a form-based report using Simulink Report Generator?

1 Ansicht (letzte 30 Tage)
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.

Akzeptierte Antwort

Rahul Singhal
Rahul Singhal am 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

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Report Generator finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by