필터 지우기
필터 지우기

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 CenterFile Exchange에서 Reporting and Database Access에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by