image thumbnail

Time Logger for Stateflow

versión (205 KB) por Roni Peer
This function will log the time each state was active during simulation.

769 descargas

Actualizada 25 Feb 2013

Ver licencia

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.

Citar como

Roni Peer (2022). Time Logger for Stateflow (, MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2012b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!