View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Time Logger for Stateflow

3.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 205 KB File ID: #40505 Version: 1.0
image thumbnail

Time Logger for Stateflow


Roni Peer (view profile)


This function will log the time each state was active during simulation.

| Watch this File

File Information

When running long Simulations, you sometimes want to know how long each state was active, with Simulation time. This function does this.

This function will run a Simulink model that contains Stateflow charts.
It will time how long each state was active and display it in a table.

It uses the DataLogs format for logging each state, after making sure all states are logged.

Inputs: Model Name - mdlName
Outputs: Table

Example use: Stateflow_Time_Logger('example_sf_car')

I've added two example models for testing: example_sf_car, example_yoyo

Read the help in the m-file for more info.

Required Products Simulink
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)
31 Mar 2013 bilal krbck

Contact us