Clear Filters
Clear Filters

How to save current state in Stateflow

3 views (last 30 days)
Duane
Duane on 21 Sep 2016
Edited: Duane on 27 Sep 2016
I am using Stateflow and Embedded coder and my code is crashing when being ran on an ARM. Is there a way to obtain and save the current state in Stateflow? I have an EEPROM that I can store the states in, but I can't figure out how to easily obtain, every timestep, the states that are active...other than storing the entire state structure.
One more issue...my timestep is 500us yet my EEPROM write time is 5ms...so writing every timestep would not work. Buffering would not work either, due to loss of states saved in RAM between writes.

Answers (0)

Categories

Find more on Complex Logic in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!