Main Content

addNewDIPSwitch

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

Add new DIP switch to the hardware

Since R2019b

Syntax

dipSwitchObj = addNewDIPSwitch(hardwareObj,name)

Description

dipSwitchObj = addNewDIPSwitch(hardwareObj,name) creates a new soc.sdk.DIPSwitch 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 DIP switch on the hardware board, specified as a string.

Example: "MyDIPSwitch"

Data Types: string | char

Output Arguments

expand all

A soc.sdk.DIPSwitch object that defines a DIP switch available on the hardware.

Version History

Introduced in R2019b