3.0

3.0 | 1 rating Rate this file 22 Downloads (last 30 days) File Size: 26 KB File ID: #12845
image thumbnail

Calling Lookup Tables In Stateflow

by

 

01 Nov 2006 (Updated )

This example demonstrates four common methods for calling look up tables in Stateflow®.

| Watch this File

File Information
Description

The attached model contains four common methods for accessing lookup tables within Stateflow. The four examples consist of using a Simulink® block in Stateflow, Embedded MATLAB™ functions in Stateflow, calling a function triggered Simulink subsystem in Stateflow, and including C-code in Stateflow. This is demonstrated in the model interp_1d_examples_r2008b.mdl.

If you are using a version of Stateflow prior to version 7.2 R2008b, you can still call lookup tables using three methods such as using Embedded MATLAB functions in Stateflow, calling a function triggered Simulink subsystem in Stateflow, and including C-code in Stateflow. This is demonstrated in the model interp_1d_examples.mdl.

Required Products Simulink
Stateflow
MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
12 Dec 2006 Chris Fillyaw

Hi Wei,

There is no dependence on whether you use a flow chart or a state diagram for these examples. Each case would support both. Thanks for the question.

02 Nov 2006 w sun

Chris, Wonder why to use state in 2 cases and a flow chart in the 3rd in the example. Like to see a comment so there is no confusion.

Updates
11 Nov 2008

Added an example to demonstrate how to use Simulink blocks in Stateflow.

30 Sep 2009

Updated copyright information.

30 Sep 2009

Added copyright information.

Contact us