How to store signal data at each timestep of simulink simulation into an array for a prescribed length of time and afterwards reset the array

7 ビュー (過去 30 日間)
Dear all,
I need to operate some statistical analysis on a sampled signal during a simulink simulation
I would like to be able to store the signal value for each time step for a given time length (let's say 200s)
When this time (200s) has expired I would run the statistical analysis on the stored data and afterwards reset the array that contains it
Up to now I tried to use Buffer block within a reset block which is receiveing the reset signal froma counter, but I was unsuccesful: buffer block doesn't reset, I am most probably misusing this block
How can I do this?
Thank you in advance
  1 件のコメント
Andrea Valletta
Andrea Valletta 2020 年 4 月 16 日
In case anyone has a similar problem, I would like to post the solution I found.
I solved it with a "tapped delay" block (I didn't know of its existence before)

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by