Main Content

getHardware

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

Get the hardware for a target

Syntax

hardwareObjs = getHardware(targetObj)
hardwareObjs = getHardware(targetObj,'mapped')
hardwareObjs = getHardware(targetObj,'mapped',featureObject)
hardwareObjs = getHardware(targetObj,'unmapped')
hardwareObjs = getHardware(targetObj,'reference')
hardwareObjs = getHardware(targetObj,'name',hardwareName)

Description

hardwareObjs = getHardware(targetObj) returns the union of Hardware objects mapped to the Target object and Target object's reference target.

hardwareObjs = getHardware(targetObj,'mapped') returns the Hardware objects mapped to the Target object.

hardwareObjs = getHardware(targetObj,'mapped',featureObject) returns the Hardware objects mapped to the Target object and that has the mapped feature object.

hardwareObjs = getHardware(targetObj,'unmapped') returns all the Hardware objects not yet mapped to the Target object. This array consists of the Hardware objects mapped to the reference target, but not mapped to the target.

hardwareObjs = getHardware(targetObj,'reference') returns a cell array of the Hardware objects, objs, that the reference target supports.

hardwareObjs = getHardware(targetObj,'name',hardwareName) returns the Hardware object, obj, with the Name property set to the string hardwareName.

Input Arguments

expand all

Target object that references the Target being developed.

Handle to a feature object.

Name of the Hardware object to return, specified as a string.

Data Types: char

Output Arguments

expand all

Hardware object to Hardware objects.

Version History

Introduced in R2015a

See Also