Main Content

soc.sdk.DIPSwitch Class

Namespace: soc.sdk

DIP switch on the hardware board

Since R2019b

Description

DIPSwitch object represents a DIP switch on the hardware board.

Creation

Description

dipSwitchObj = soc.sdk.DIPSwitch(Name) creates a new soc.sdk.DIPSwitch object, with the Name property set to name.

Properties

expand all

Name of the DIP switch, specified as a character vector.

Note

The name must start with a letter and may contain letters, numbers, underscores, minus signs, slashes, and spaces.

Example: 'MyDIPSwitch'

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

The pins used by the DIP switch.

Example: {'A11','A12'}

Attributes:

GetAccess
public
SetAccess
public

Data Types: cell

Configuration of DIP switch where 1 is active high and 0 is active low.

Example: 0

Attributes:

GetAccess
public
SetAccess
public

Data Types: logical

The IO standard used by the DIP switch, specified as a character vector.

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

Version History

Introduced in R2019b