Main Content

addNewPushButton

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

Add new push button to hardware

Syntax

pushButtonObj = addNewPushButton(hardwareObj,name)

Description

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.

Version History

Introduced in R2019b