Dials & Gauges Blockset | ![]() ![]() |
Buttons & Switches
The Buttons & Switches library contains two-state controls that change their states when you click on them. The block output is 0
when the block's state is off and 1
when the state is on. The blocks in this library differ in cosmetic ways, such as the images shown on the block and the changes in the block's appearance after you click on it. The next sections describe how to customize buttons and switches, and how to change the output values from buttons and switches.
Customizing Buttons and Switches
The table below lists some common ways to customize a block in the Buttons & Switches library, using its ActiveX Control Properties dialog box.
Changing Output Values
The output values for blocks in this library are 1
and 0
. To convert these output values to other numerical values, you can send the output to a Look-Up Table block in Simulink.
![]() | Angular Gauges | Knobs & Selectors | ![]() |