フィルターのクリア

How to select which blocks parameters description appear on the system design description report?

2 ビュー (過去 30 日間)
Hi, I am trying to generate a report with only some blocks parameter description. I click on customize content, inside the report explorer. The problem is that inside the subsystem chapter there is a section 2 - Blocks which selects all the blocks inside each subsystem and prints you on the report. What I want is to select what blocks appear inside each subsystem on my report. I am not interested on all blocks but only in some blocks (maybe the most important). I attach an image of the Section 2 -Blocks. Can anyone help me? Thank you in advance :)

採用された回答

Eric
Eric 2017 年 12 月 14 日
  1. Write a function, say myFilterFcn, to that it returns true for the blocks you want to report on.
  2. In your custom SDD report tempate, navigate to "Section 2 - Blocks" -> "Section 3 - Parameters" -> "Block Loop" -> If (StdRpt.SDD..."
  3. Update this IF condition expression string to include your function
StdRpt.SDD.includeBlock(RptgenSL.getReportedBlock()) && myFilterFcn(RptgenSL.getReportedBlock())
  1 件のコメント
Joseba Cantero
Joseba Cantero 2017 年 12 月 15 日
Hi Eric, thank you for your help. It works well. I have created the following function which returns true if a block is a Gain block (in this case, but you could select the block type which you prefer).
function [output] = myFilterFcn(block)
%myFilterFcn This function returns true if the entering
%block is a gain type
b = string(get_param(block,'BlockType'));
if ( b == 'Gain')%you can select here the block Types you want.
output = true;
else
output = false;
end
Many thanks! :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeReporting and Database Access についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by