Summing loop in simulink

Hi, I want have two values that are constantly updated in simulink. Now I want to add these two values, and in the next sample time, I want to add these two values to the previous sum. I want to do this for 80 times. Rest the values. And do it again. I want to do this in real time in simulink

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 25 日

0 投票

Use a unit delay block or memory bllock

2 件のコメント

Paramatmuni samrat
Paramatmuni samrat 2013 年 2 月 25 日
Ok I have used that. My issue is, I do not know how to reset this sum after 80 times. And start fresh from the 81st to 160. And then again from 161 to 240. It's all real time btw. So i cant use reshape also.
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 25 日
There is a solution for that, post your model to find the best way

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

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

質問済み:

2013 年 2 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by