DIP Switch
R2026bConnect signals attached to DIP switches on hardware board
Libraries:
SoC Blockset for AMD /
SoC System Simulation /
Hardware Logic I/O
HDL Coder /
SoC System Simulation /
Hardware Logic I/O
Description
The DIP Switch block controls the hardware logic. The hardware logic signals connected to a DIP Switch block are equivalent to the signals connected to the dual inline package (DIP) switches on the hardware board.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"hwlogiciolib/DIP Switch"
"hwlogiciolib/DIP Switch"
Example: add_block("hwlogiciolib/DIP Switch","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2019a
See Also
LED (SoC Blockset) | Push Button (SoC Blockset)