Main Content

Safety Analysis Manager

R2026b

Create and edit documents for safety analyses

Since R2023b

Description

The Safety Analysis Manager app lets you create and edit documents for safety analyses. You can:

  • Create tabular safety analysis documents, such as Failure Mode and Effects Analyses (FMEAs), Functional Hazard Assessments (FHAs).

  • Create deductive analysis documents, such as Fault Tree Analyses (FTA) (since R2026b).

  • Link document elements to model artifacts such as requirements and faults.

  • Analyze documents by running MATLAB® callback code.

This image shows the Safety Analysis Manager. The Safety Analysis Manager has an untitled spreadsheet loaded with two rows and five columns. The first three columns are empty, and the last two columns have empty check boxes.

Open the Safety Analysis Manager App

  • MATLAB Toolstrip (since R2024b): On the Apps tab, in the Apps section, under Model Verification, Validation, and Test, click Safety Analysis Manager.

  • Simulink® Toolstrip: On the Apps tab, under Model Verification, Validation, and Test, click Safety Analysis Manager.

  • MATLAB command prompt: Enter safetyAnalysisMgr.openManager or safetyAnalysisManager.

Examples

expand all

You can create a new document by creating an empty document or using a template that has specified columns and column types. To create a new document:

  1. In the Safety Analysis Manager, in the File section, click New .

  2. Create an empty spreadsheet or fault tree document by clicking Empty Spreadsheet or Empty Fault Tree Document. Alternatively, open a template by clicking From Template File. If you select From Template File, you must select an MLDATX template file.

You can navigate documents in the Opened Documents pane.

The Diagnostics pane lists diagnostics from the scripts that you create in callbacks. The pane displays the same types of diagnostic messages that appear in the Diagnostic Viewer in Simulink models. See Diagnostic Viewer. You can use filters to display errors, warnings, or information.

  1. At the bottom of the Safety Analysis Manager, expand the Diagnostics pane by clicking the Expand Bottom button .

  2. To display:

    • Information — Click the Show/Hide information button .

    • Warnings — Click the Show/Hide warnings button .

    • Errors — Click the Show/Hide errors button .

The pane displays the number of each kind of diagnostic message next to the corresponding button. Each message links to the document that contains the diagnostic.

To clear the diagnostics, click the Clear all diagnostics button .

To export diagnostics, click the Export diagnostics button . Save the diagnostics as a TXT file.

Related Examples

Parameters

expand all

Specify the description of the document or the document artifact. In the Properties pane, select the document or the artifact tab and enter the description in the Description box. You can add descriptions to spreadsheets, rows, cells, fault tree documents, events, gates, and failure models.

Specify document attributes, which are a combination of properties and values. To create a document attribute, in the Properties pane, in the Spreadsheet or Fault Tree Document tab, in the Document attributes section, click the Add new document attribute button . To delete a document attribute, select the attribute and click the Delete document attribute button .

Version History

Introduced in R2023b

expand all