5.0

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

Simulink ON/OFF switch

by

 

06 Dec 2012 (Updated )

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

| Watch this File

File Information
Description

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
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  
Updates
07 Dec 2012

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

Contact us