Main Content

Simulink.data.adapters.BaseMatlabFileAdapter Class

Namespace: Simulink.data.adapters

Base class used to define file adapter for reading custom file formats

Since R2022b

Description

The Simulink.data.adapters.BaseMatlabFileAdapter class is the base class for custom file adapters that the loadVariablesFromExternalSource function uses to load variables from an external source file into a Simulink.SimulationInput object. Subclass the Simulink.data.adapters.BaseMatlabFileAdapter class to specify how to load data from your custom external data source.

For an example of how to write, test, and register a custom file adapter, see Create External File Adapter for Loading Variables into Simulink.SimulationInput Object.

For an example of how to use a custom file adapter, see loadVariablesFromExternalSource.

The Simulink.data.adapters.BaseMatlabFileAdapter class is a handle class.

Class Attributes

Abstract
true
HandleCompatible
true

For information on class attributes, see Class Attributes.

Properties

expand all

Section of the external file, specified as a character array.

Example: 'tireManufacturer'

External source file, specified as a character array.

Example: 'Tires.xls'

Methods

expand all

Version History

Introduced in R2022b