prev value in a stateflow chart

14 ビュー (過去 30 日間)
Andreas Walter
Andreas Walter 2019 年 2 月 1 日
回答済み: Corey Lagunowich 2025 年 4 月 2 日
Stateflow documentation:
...To detect changes, the chart automatically double-buffers these values in local variables, as follows:
var_name_prev Value of data at the beginning of the last time step
var_name_start Value of data at the beginning of the current time step
Question: do I have read access to the buffered variables? I want to use them for calculations inside the stateflow chart.

回答 (1 件)

Corey Lagunowich
Corey Lagunowich 2025 年 4 月 2 日
No, these are internal buffers and not available to the user as of R2024b.
As a workaround, I suggest implementing your own buffers using Local data objects.

カテゴリ

Help Center および File ExchangeStateflow についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by