Main Content

Simulink.io.getFileTypeDiagnostics

Return structure with NamespaceErrors field for Simulink.io.FileType objects

Since R2021a

Description

diagnosticStruct = Simulink.io.getFileTypeDiagnostics() returns a structure with field NamespaceErrors diagnosticStruct for Simulink.io.FileType objects.

example

Examples

collapse all

Get diagnostics for Simulink.io.FileType objects and return in diagnosticStruct.

diagnosticStruct = Simulink.io.getFileTypeDiagnostics()
 
diagnosticStruct = 

  struct with fields:

    NamespaceErrors: {}

In this example, there are no diagnostics.

Output Arguments

collapse all

Structure of diagnostics for Simulink.io.FileType objects, returned as a structure with a cell array of NamespaceErrors fields. The first column in the cell array is the name of the name space plugin. In this example output, the name of the name space plugin is not.here.

diagnosticStruct = 

  struct with fields:

    NamespaceErrors: { ‘not.here’ ‘Unknown package name ‘ ’ ‘.’}

Version History

Introduced in R2021a