<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.9.4.4 $  $Date: 2004/11/21 20:35:53 $ -->
<demos>
   <name>Stateflow</name>
   <type>simulink</type>
   <icon>$toolbox/matlab/icons/simulinkicon.gif</icon>
   <description isCdata="no">
<p>Stateflow is an interactive design and simulation tool for event-driven 
systems. Stateflow provides the language elements required to describe 
complex logic in a natural, readable, and understandable form. It is 
tightly integrated with MATLAB and Simulink, providing an efficient 
environment for designing embedded systems that contain control, 
supervisory, and mode logic.</p>

<p>In addition, Stateflow can produce efficient production-quality code so 
that you can turn your thoughts and ideas into real systems. </p>

<p> <a href="http://www.mathworks.com/products/stateflow">
<img src="../../matlab/icons/webicon.gif"/>
Stateflow product page</a></p>

   </description>


   <demosection>
      <label>Examples</label>
      <description isCdata="no">
<p>Stateflow provides a complete environment in which you can model all 
types of reactive systems.  It works closely with Simulink to provide a 
complete system simulation environment. </p>
      </description>
      <demoitem>
         <label>Sensor Failure Detection (sim)</label>
         <file>fuelsys.html</file>
         <callback>fuelsys</callback>
      </demoitem>
      <demoitem>
         <label>Bang-Bang control using Temporal Logic</label>
         <file>sf_boiler.html</file>
         <callback>sf_boiler</callback>
      </demoitem>
      <demoitem>
         <label>Automatic Transmission Control</label>
         <file>sf_car.html</file>
         <callback>sf_car</callback>
      </demoitem>
      <demoitem>
         <label>Electrohydraulic Servomechanism</label>
         <file>sf_electrohydraulic.html</file>
         <callback>sf_electrohydraulic</callback>
      </demoitem>
      <demoitem>
         <label>Home security system</label>
       <callback>sf_security</callback>
      </demoitem>
      <demoitem>
         <label>Elevator System Control Logic (sim)</label>
         <file>sf_elevator.html</file>
         <callback>sf_elevator</callback>
      </demoitem>
      <demoitem>
         <label>Stick-Slip Friction Demonstration</label>
         <callback>sf_stickslip</callback>
      </demoitem>
      <demoitem>
         <label>Model of a Hand-Held Game</label>
         <callback>sf_tictacflow</callback>
      </demoitem>
      <demoitem>
         <label>Bridge (card game) Bidding</label>
         <file>sf_bridge.html</file>
         <callback>sf_bridge</callback>
      </demoitem>
      <demoitem>
         <label>Yo-Yo control of a Tethered Satellite</label>
         <callback>sf_yoyo</callback>
      </demoitem>
      <demoitem>
         <label>Icon Editor GUI Demonstration</label>
         <callback>sfediticon</callback>
      </demoitem>
      <demoitem>
         <label>Server Queueing System</label>
         <file>sf_server.html</file>
         <callback>sf_server</callback>
      </demoitem>
      <demoitem>
         <label>Fixed-point Mandelbrot Set</label>
         <callback>sf_mandelbrot_fixpt</callback>
      </demoitem>
      <demoitem>
         <label>Fixed-point Guidance System</label>
         <callback>sf_aero_guidance_fixpt</callback>
      </demoitem>
      <demoitem>
         <label>Tetris</label>
         <callback>sf_tetris</callback>
      </demoitem>
   </demosection>


   <demosection>
      <label>Graphical Functions</label>
      <description isCdata="no">
<p>Define a graphical function once in a chart and call it as many times 
as needed in Stateflow action language.</p>
      </description>
      <demoitem>
         <label>Using a Graphical Function</label>
         <file>sf_gfdemo.html</file>
         <callback>sf_gfdemo</callback>
      </demoitem>
      <demoitem>
         <label>Exporting a Graphical Function</label>
         <file>sf_gfexport.html</file>
         <callback>sf_gfexport</callback>
      </demoitem>
      <demoitem>
         <label>Recursive Graphical Functions</label>
         <file>sf_gfrecursive.html</file>
         <callback>sf_gfrecursive</callback>
      </demoitem>
    </demosection>


    <demosection>
      <label>Temporal Logic</label>
      <description isCdata="no">
<p>Use temporal logic operators as Boolean operators that operate on 
recurrence counts of Stateflow events.</p>
      </description>
      <demoitem>
         <label>AFTER function</label>
         <file>sf_tlafter.html</file>
         <callback>sf_tlafter</callback>
      </demoitem>
      <demoitem>
         <label>BEFORE function</label>
         <file>sf_tlbefore.html</file>
         <callback>sf_tlbefore</callback>
      </demoitem>
      <demoitem>
         <label>AT function</label>
         <file>sf_tlat.html</file>
         <callback>sf_tlat</callback>
      </demoitem>
      <demoitem>
         <label>EVERY function</label>
         <file>sf_tlevery.html</file>
         <callback>sf_tlevery</callback>
      </demoitem>
   </demosection>


   <demosection>
      <label>Matrix I/O</label>
      <description isCdata="no">
<p>Exchange matrix data with Simulink via I/O and operate on matrix 
data within charts.</p>
      </description>
      <demoitem>
         <label>Vectorization</label>
         <file>sf_array.html</file>
         <callback>sf_array</callback>
      </demoitem>
      <demoitem>
         <label>Matrix Input and Output</label>
         <file>sf_matrix.html</file>
         <callback>sf_matrix</callback>
      </demoitem>
   </demosection>


   <demosection>
      <label>Loop Statements</label>
      <description isCdata="no">
<p>Create many types of looping constructs.</p>
      </description>
      <demoitem>
         <label>IF Statement</label>
         <file>sf_if.html</file>
         <callback>sf_if</callback>
      </demoitem>
      <demoitem>
         <label>WHILE and DO-WHILE Loops</label>
         <file>sf_while.html</file>
         <callback>sf_while</callback>
      </demoitem>
      <demoitem>
         <label>FOR Loops</label>
         <file>sf_for.html</file>
         <callback>sf_for</callback>
      </demoitem>
   </demosection>


   <demosection>
      <label>Fixed-Point Data</label>
      <description isCdata="no">
<p>Define and use fixed point data.</p>
      </description>
      <demoitem>
         <label>Fixed-Point Multiplication</label>
         <file>sf_fxptprecision.html</file>
         <callback>sf_fxptprecision</callback>
      </demoitem>
      <demoitem>
         <label>Fixed-Point Conversion</label>
         <file>sf_fixpt.html</file>
         <callback>sf_fixpt</callback>
      </demoitem>
      <demoitem>
         <label>Fixed-Point Graphical Functions</label>
         <file>sf_fxptgf.html</file>
         <callback>sf_fxptgf</callback>
      </demoitem>
   </demosection>


   <demosection>
      <label>Workspace Data</label>
      <description isCdata="no">
<p>Data can be intialized from the workspace and logged to the workspace.</p>
      </description>
      <demoitem>
         <label>Data From Workspace</label>
         <file>sf_fromworkspace.html</file>
         <callback>sf_fromworkspace</callback>
      </demoitem>
   </demosection>


   <demosection>
      <label>Function Call Outputs</label>
      <description isCdata="no">
<p>Execute Simulink function-call subsystems using events.</p>
      </description>
      <demoitem>
         <label>Function Call (Subsystem and Chart)</label>
         <file>sf_eventfcn.html</file>
         <callback>sf_eventfcn</callback>
      </demoitem>
      <demoitem>
         <label>Function Call to Multiple Charts)</label>
         <file>sf_multfuncout.html</file>
         <callback>sf_multfuncout</callback>
      </demoitem>
   </demosection>


   <demosection>
      <label>Custom C-Code</label>
      <description isCdata="no">
<p>Incorporate legacy C and C++ hand code into charts.</p>
      </description>
      <demoitem>
         <label>Incorporate Custom C-code Functions and Structures</label>
         <file>sf_custom.html</file>
         <callback>sf_custom</callback>
      </demoitem>
      <demoitem>
         <label>Include Custom C++ code in Stateflow</label>
         <file>sf_cpp.html</file>
         <callback>sf_cpp</callback>
      </demoitem>
   </demosection>
</demos>
