Is it possible to programmatically insert a figure on a form-based report using Simulink Report Generator?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Rahul Singhal
2020-11-17
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!