Hauptinhalt

safetyAnalysisMgr.getDiagnostics

R2026b

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 = 

    "[05-Mar-2026 14:29:26 UTC-05:00] ERROR in an unsaved document while evaluating AnalyzeFcn callback: 
     Unrecognized function or variable 'notRealScript'.
     "

Version History

Introduced in R2023b