Main Content

Simulink.data.adapters.registerAdapter

Register custom file adapter

Since R2022b

    Description

    Simulink.data.adapters.registerAdapter(adapterClassName) registers the custom external file adapter class adapterClassName, which is derived from the Simulink.data.adapters.BaseMatlabFileAdapter base class. The adapter registration can be added to a startup script so that the adapter is available for each MATLAB® session.

    example

    Examples

    collapse all

    Register the XML file adapter XMLAdapter to make it available during the MATLAB session.

    Simulink.data.adapters.registerAdapter('XMLAdapter');

    Input Arguments

    collapse all

    File adapter class name, specified as a string or character array.

    Example: 'adapterName'

    Data Types: char | string

    Version History

    Introduced in R2022b