Main Content

getOperatingSystem

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

Get the operating systems for a target

Syntax

osObjs = getOperatingSystem(targetObj)
osObjs = getOperatingSystem(targetObj,'mapped')
osObjs = getOperatingSystem(targetObj,'mapped',hardwareObject)
osObjs = getOperatingSystem(targetObj,'unmapped')
osObjs = getOperatingSystem(targetObj,'reference')
osObjs = getOperatingSystem(targetObj,'name',operatingSystemName)

Description

osObjs = getOperatingSystem(targetObj) returns all OperatingSystem objects mapped to the Target object or the Reference Target.

osObjs = getOperatingSystem(targetObj,'mapped') returns all the OperatingSystem objects mapped to Target object.

osObjs = getOperatingSystem(targetObj,'mapped',hardwareObject) returns all OperatingSystem objects mapped to the Target object and Hardware object.

osObjs = getOperatingSystem(targetObj,'unmapped')returns all OperatingSystem objects only mapped to the Reference Target and can be mapped to the Target object.

osObjs = getOperatingSystem(targetObj,'reference') returns all OperatingSystem objects mapped to the Reference Target of the Target object.

osObjs = getOperatingSystem(targetObj,'name',operatingSystemName) returns the OperatingSystem object with Name property equal to the operatingSystemName argument.

Input Arguments

expand all

Target object that references the Target being developed.

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

Descriptive name of the Name property of a OperatingSystem object contained in the Target object.

Example: 'MyLinuxDistro'

Data Types: char

Output Arguments

expand all

OperatingSystem object or cell array of OperatingSystem objects.

Version History

Introduced in R2015a