Contenuto principale

addNewLED

Class: soc.sdk.Hardware
Namespace: soc.sdk

Add new LED to hardware

Syntax

ledObj = addNewLED(hardwareObj,name)

Description

Add-On Required: This feature requires the SoC Blockset Support Package for AMD FPGA and SoC Devices add-on.

ledObj = addNewLED(hardwareObj,name) creates a new soc.sdk.LED object, with the Name property set to name, and adds the new object to the soc.sdk.Hardware object.

Input Arguments

expand all

Hardware object mapped to the soc.sdk.BoardSupport object, specified as an soc.sdk.Hardware object.

Name of the LED owned by a hardware board, specified as a string.

Example: 'MyLED'

Data Types: string | char

Output Arguments

expand all

A soc.sdk.LED object that defines the properties of an LED on the hardware.

Version History

Introduced in R2019b