How to save current state in Stateflow

조회 수: 2 (최근 30일)
Duane
Duane 2016년 9월 21일
편집: Duane 2016년 9월 27일
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.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Decision Logic에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by