Main Content

addNewEthernetInterface

Class: matlabshared.targetsdk.Hardware
Namespace: matlabshared.targetsdk

Add new Ethernet interface to hardware

Syntax

obj = addNewEthernetInterface(h,interfaceName)

Description

obj = addNewEthernetInterface(h,interfaceName) creates a new EthernetInterface object, obj, with the Name property set to the string interfaceName and adds the new object to the Hardware object, h.

An error is thrown if new EthernetInterface object cannot be created.

Input Arguments

expand all

Handle to the object representing the hardware on which the generated code runs.

Name of the EthernetInterface object, specified as a string.

Example: 'My PMC GB Ethernet Card'

Data Types: char

Output Arguments

expand all

Handle to the object representing the Ethernet interface.

Version History

Introduced in R2015a