主要内容

addNewDIPSwitch

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

Add new DIP switch to the hardware

Syntax

dipSwitchObj = addNewDIPSwitch(hardwareObj,name)

Description

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

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

Hardware object mapped to the soc.sdk.BoardSupport object, specified as an soc.sdk.Hardware 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