Main Content

safetyAnalysisMgr.getDiagnostics

Return diagnostics in Safety Analysis Manager

Since R2023b

Description

diagnostics = safetyAnalysisMgr.getDiagnostics returns the diagnostics in the Safety Analysis Manager as a string scalar.

example

Examples

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 return them as a string scalar, enter this command:

safetyAnalysisMgr.getDiagnostics
ans = 

    "[22-Jun-2023 14:12:41 UTC-04:00] ERROR in AircraftElevatorFMEA 
     while evaluating AnalyzeFcn callback: 
     Unrecognized function or variable 'notRealScript'.
     "

Version History

Introduced in R2023b