View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Simulink ON/OFF switch

5.0 | 1 rating Rate this file 9 Downloads (last 30 days) File Size: 9.09 KB File ID: #39348 Version: 1.2
image thumbnail

Simulink ON/OFF switch



06 Dec 2012 (Updated )

Simulink ON/OFF switch. Used to toggle between ON and OFF states.

| Watch this File

File Information

Subsystem alternates between ON and OFF and changes colors and labels accordingly.

The output is 0 and color is blue when OFF

The output is 1 and color is red when ON.

Code is contained in the OpenFcn callback and can be changed as needed.

Required Products Simulink
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
01 Mar 2013 Erik

Erik (view profile)

07 Dec 2012 1.2

Uses gcb instead of explicitly referring to block name, which makes reuse difficult.

Contact us