generate fault specification reports -凯发k8网页登录

main content

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:

  1. open a model that contains faults, conditionals, or a combination of both.

  2. open simulink fault analyzer. in the apps tab, click fault analyzer.

  3. in the review results section, click report generator. the create a fault specification report window opens.

    the create a fault specification report window. the model selected is named mymodel. the window includes several properties, including five check boxes and three text fields. the file format is selected as a pdf.

  4. in the window, specify these properties:

    propertydescription
    titlespecifies the title of the report. the default title is fault specification report for 'model' where model is the name of the model. the title appears on the first page.
    authorspecifies 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 detailswhether the report includes fault details. for more information on faults, see .
    fault behavior detailswhether the report includes fault behavior details. for more information on fault behaviors, see and .
    conditional detailswhether the report includes conditional details. for more information on conditionals, see .
    traceability informationwhether 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 tablewhether the report includes a copy of the fault table pane. for more information on the fault table pane, see and .
    file formatexported report file type. you can select pdf, docx, or htmx.
    file namethe 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.
  5. 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:

title page of the generated report for sldemo_fuelsys_fault_analyzer in the example topic. it includes the title, the author name myname, and the generation date, listed in order.

the report includes information on the five faults, their behaviors, and the conditional. navigate to this information in the table of contents.

table of contents of the report for sldemo_fuelsys_fault_analyzer in the example topic. it includes links to the information of each section.

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.

see also

related topics

    网站地图