Main Content

getReporter

Class: slreportgen.finder.BlockResult
Namespace: slreportgen.finder

Get block reporter

Syntax

reporter = getReporter(blockResult)

Description

reporter = getReporter(blockResult) returns a reporter that generates a properties table for the block in the result.

Input Arguments

expand all

Search result object for a block, specified as an slreportgen.finder.BlockResult object.

Output Arguments

expand all

Simulink object properties reporter, returned as one of these values:

  • Block-specific reporter object, when the Report API includes a reporter for the block. For example, the getReporter method returns an slreportgen.report.DocBlock object when the search result represents a DocBlock block.

  • An slreportgen.report.SimulinkObjectProperties object, when the Report API does not include a reporter specific to the block. A SimulinkObjectProperties reporter generates a properties table for the block.

Version History

Introduced in R2017b