Time Logger for Stateflow

版本 1.0.0.0 (204.8 KB) 作者: Roni Peer
This function will log the time each state was active during simulation.
793.0 次下载
更新时间 2013/2/25

查看许可证

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.

引用格式

Roni Peer (2025). Time Logger for Stateflow (https://www.mathworks.com/matlabcentral/fileexchange/40505-time-logger-for-stateflow), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Prepare Model Inputs and Outputs 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0