Main Content

soc.sdk.ExternalMode Class

Namespace: soc.sdk

External mode configuration

Description

An ExternalMode object that represents an external mode configuration. When mapped to an soc.sdk.BoardSupport object, the supported hardware board can use external mode in Simulink®.

Note

The ExternalMode can only map to a single EthernetInterface or SerialInterface object.

Creation

Description

externalModeObj = soc.sdk.ExternalMode(name) creates an ExternalMode object, with the Name property set to name. The ExternalMode object that represents an external mode configuration.

Properties

expand all

Name of the ExternalMode object, specified as a character vector.

Example: 'MyExternalMode'

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

Source files used for building generated code in external mode, specified as a cell array of character vectors. Each source file must include a full path. A path can include tokens. If you include a path separator in a string, the separator must be valid for all supported host platforms.

Attributes:

GetAccess
public
SetAccess
public

Data Types: cell

Name of a MATLAB® function that executes before an external mode connection opens, specified as a character vector.

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

Name of a MATLAB function that executes when an external mode connection is set up, specified as a character vector.

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

Name of a MATLAB function that executes when an external mode connection closes, specified as a character vector.

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

Version History

Introduced in R2019b