Is it possible to programmatically insert a figure on a form-based report using Simulink Report Generator?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Gerardo Felix
el 17 de Ag. de 2020
Respondida: Rahul Singhal
el 17 de Nov. de 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 comentarios
Respuesta aceptada
Rahul Singhal
el 17 de Nov. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulink Report Generator en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!