Be the first to rate this file! 5 Downloads (last 30 days) File Size: 2.61 MB File ID: #22758
image thumbnail

Design Patterns for Integrating Simulink with Stateflow

by Linda Webb

 

22 Jan 2009

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

| 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

Contact us at files@mathworks.com