generate fault specification reports
you can create a fault specification report that summarizes the faults and conditionals in your model. you can select the format of the report and details of the simulink® fault analyzer™ artifacts that you want to include. you can generate the report interactively or programmatically.
create a report interactively
to create a fault specification report interactively:
open a model that contains faults, conditionals, or a combination of both.
open simulink fault analyzer. in the apps tab, click fault analyzer.
in the review results section, click report generator. the create a fault specification report window opens.
in the window, specify these properties:
property description title specifies the title of the report. the default title is fault specification report for 'model'
wheremodel
is the name of the model. the title appears on the first page.author specifies the author of the report. the author appears on the first page of the generated report. if you do not specify this property, the author is the username of the system running matlab®. to find this name, enter getenv("user")
into the matlab command window.fault details whether the report includes fault details. for more information on faults, see . fault behavior details whether the report includes fault behavior details. for more information on fault behaviors, see and . conditional details whether the report includes conditional details. for more information on conditionals, see . traceability information whether the report includes link details attached to faults and conditionals. clicking on the linked artifact opens the corresponding artifact in simulink. for more information on linking artifacts in simulink fault analyzer, see . fault table whether the report includes a copy of the fault table pane. for more information on the fault table pane, see and . file format exported report file type. you can select pdf
,docx
, orhtmx
.file name the report file name. by default, the report name is faultspecreport
. if you do not specify a directory, simulink fault analyzer saves the report in the working directory. to change the directory, click browse.click ok. by default, simulink fault analyzer saves the report in the working folder with the name
faultspecreport
and the selected extension.
for example, open the sldemo_fuelsys_fault_analyzer
model set up in
. generate a report
with the default options and set the author property to
myname
. simulink
fault analyzer saves the report in the working directory. the report generates this title
page with the default title, author name myname
, and the generation
date:
the report includes information on the five faults, their behaviors, and the conditional. navigate to this information in the table of contents.
programmatically generate a report
to programmatically generate a fault specification report, use the function. you can specify the same options that are available interactively. however, the function does not open the generated report by default.