Main Content


Save diagnostics in Safety Analysis Manager to text file

Since R2023b



safetyAnalysisMgr.saveDiagnostics(fileName) saves the diagnostics in the Safety Analysis Manager to a text file with the name, fileName.


collapse all

Suppose you have these diagnostics in the Diagnostics pane of the Safety Analysis Manager.

The Diagnostics pane shows an error message in red.

To save them to a text file with the name myDiagnostics, enter this command:


Input Arguments

collapse all

File name, specified as a string scalar or character vector. The file name must contain the text file extension, .txt.

Data Types: char | string

Version History

Introduced in R2023b