Main Content

Simulink.io.getFileTypeDiagnostics

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

Description

example

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

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 ‘ ’ ‘.’}
Introduced in R2021a