Main Content


Class: soc.sdk.Hardware
Package: soc.sdk

Add new push button to hardware


pushButtonObj = addNewPushButton(hardwareObj,name)


pushButtonObj = addNewPushButton(hardwareObj,name) creates a new soc.sdk.PushButton object, with the Name property set to name, and adds the new object to the soc.sdk.Hardware object.

Input Arguments

expand all

soc.sdk.Hardware object mapped to the soc.sdk.BoardSupport object.

Name of the push button on the hardware board, specified as a string.

Example: "MyPushButton"

Data Types: string | char

Output Arguments

expand all

An soc.sdk.PushButton object that defines a push button available on the hardware.

Introduced in R2019b