how can I keep track of last n sec of data at each time step in Simulink model itself?

3 ビュー (過去 30 日間)
Hello, I am implimenting some strategy in simulink model and for this at each time step I need to look back last 3 sec data and compare it with the current time step data. I am not able to find any block which can store the last n sec data in simulink model. I have tried memory block but it only stores one time step value. The data store block stores all the time steps data. is there a way i can access only some simulation time data at each time step?

採用された回答

Sam Chak
Sam Chak 2023 年 12 月 15 日
You can test out this Tapped Delay block. It can store data for the specified number of delay steps.
  1 件のコメント
Sowmya Payyavula
Sowmya Payyavula 2024 年 1 月 3 日
Thank you for the reply. It helped me. I used tapped delay with bit change detection and nor gate to get the output I wanted.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by