Main Content

map

Class: matlabshared.targetsdk.Target
Namespace: matlabshared.targetsdk

Map a target feature to the hardware board

Syntax

map(targetObj,hardwareObject,displayName)
map(targetObj,hardwareObject,featureObj)
map(targetObj,hardwareObject,featureObject,IOInterfaceName)
map(targetObj,featureObj)

Description

map(targetObj,hardwareObject,displayName) maps a Hardware object to the Target object with a display name of displayName. Saving the Target object, using the saveTarget function, adds displayName as a new entry to the Hardware Implementation > Hardware board selection in the Simulink® configuration parameters. If the hardwareObject and displayName arguments are cell arrays of objects, then each display name adds a new unique entry to the Hardware Implementation > Hardware board selection for the corresponding hardware board.

map(targetObj,hardwareObject,featureObj) maps a feature of the Target object to the Hardware object. Saving a Target object, using the saveTarget function, enables the mapped features in the Simulink configuration parameters for your hardware board.

map(targetObj,hardwareObject,featureObject,IOInterfaceName) maps a feature object of the Target object to a Hardware object. The feature object will use the I/O interface, EthernetInterface or SerialInterface, of the Hardware object with the Name property equal to IOInterfaceName.

map(targetObj,featureObj) maps a feature object of the reference target to the Target object.

Input Arguments

expand all

Target object that references the Target being developed.

Hardware object that references the hardware board mapped to the Target.

Feature objects include the Deployer, Profiler, PIL, BaremetalScheduler, OperatingSystem, and ExternalMode objects. The feature objects must be added to the Target object using the respective addNew method, such as addNewDeployer, prior to mapping the feature.

Data Types: cell

Display name matching the Name property of an EthernetInterface or SerialInterface object for the Hardware object.

Example: 'MySerialInterface'

Data Types: char | cell

Display name of the Hardware object. After saving the Target object using the saveTarget function, the display name becomes a selection in the Hardware Implementation > Hardware board property in the Simulink configuration parameters.

Example: 'MyHardwareBoard'

Example: {'MyHardwareBoard','MyOtherHardwareBoard'}

Data Types: string | char | cell

Version History

Introduced in R2015a