Be the first to rate this file! 114 downloads (last 30 days) File Size: 2.61 MB File ID: #22758

Design Patterns for Integrating Simulink with Stateflow

by Linda Webb

 

22 Jan 2009

No BSD License  

Engineers can integrate state machines and control logic designed in Stateflow and Simulink

Download Now | Watch this File

File Information
Description

Engineers who use Simulink® and Stateflow® within Model-Based Design often need to integrate state machines and control logic designed in Stateflow with Simulink blocks, subsystems, and components. Common tasks include calling a Lookup Table block from Simulink to perform interpolation on a specific Stateflow variable. Stateflow is often used to enable or disable Simulink subsystems that represent specific tasks, such as startup and shutdown, or individual controller types. Another common procedure involving both Simulink and Stateflow is controlling the behavior of system components, such as the guidance and navigation system of an airplane or a set of sensors located in an automobile.

To complete tasks and procedures like these requires a seamless interface between Simulink and Stateflow. Starting with R2008b, Stateflow users can create and embed Simulink functions directly inside their Stateflow charts. This article reviews three design patterns for using Simulink functions inside Stateflow: modeling algorithms, scheduling tasks and controllers, and controlling components.

By Michael Carone, The MathWorks

This article was published in MATLAB Digest, January 2009, which you can read at http://www.mathworks.com/company/newsletters/?s_cid=nws_flex

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
whitepaper Linda Webb 22 Jan 2009 15:18:26
article Linda Webb 22 Jan 2009 15:18:26
paper Linda Webb 22 Jan 2009 15:18:26
modelbased design Linda Webb 22 Jan 2009 15:18:26
controller Linda Webb 22 Jan 2009 15:18:26
control design Linda Webb 22 Jan 2009 15:18:26
algorithm Linda Webb 22 Jan 2009 15:18:26
modeling Linda Webb 22 Jan 2009 15:18:26
task Linda Webb 22 Jan 2009 15:18:26
scheduling Linda Webb 22 Jan 2009 15:18:26
state chart Linda Webb 22 Jan 2009 15:18:26
system Linda Webb 22 Jan 2009 15:18:26
subsystem Linda Webb 22 Jan 2009 15:18:26
control logic Linda Webb 22 Jan 2009 15:18:26
state Linda Webb 22 Jan 2009 15:18:26
machine Linda Webb 22 Jan 2009 15:18:26
largescale modeling Linda Webb 22 Jan 2009 15:18:26
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com