How to store data and use data at particular instant in Simulink?

조회 수: 10 (최근 30일)
Tushar Mahalle
Tushar Mahalle 2019년 5월 13일
댓글: Tushar Mahalle 2019년 5월 13일
I am using sine signal having 50Hz frequency. RMS value of this signal is being used for some calculation (calculation number 1) which is done after every 50msec. So here I am taking RMS value input after every 50msec. Output of calculation 1 is increases initially and then settles down (saturates). When input RMS is changed, output of calculation 1 approaches new threshold value (takes some time to reach there). With the new RMS value, once the threshold is crossed the next calculation (number 2) is initiated. But this next calculaton is having the terms from initial steady state RMS input of signal (RMS value corresponding to initial saturated value of calculation 1) (like previous signal value). I want to get that value here. The time interval after which this value is required is variable and depends on calculation of calculation number 1. How can I achieve this?

답변 (1개)

ES
ES 2019년 5월 13일
Use delay block value to reload the last value whenever the RMS value changes.
  댓글 수: 1
Tushar Mahalle
Tushar Mahalle 2019년 5월 13일
Thanks a lot ES but I actually am using the delay block. But i was looking for some dedicated solution for this problem.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Measurements and Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by