필터 지우기
필터 지우기

I want to cycle the signal simulink according to my application i can't use any repeat blocks.How can i do it ?

조회 수: 7 (최근 30일)
Hi...I have a specific length of signal.I don't know the length of the signal .I should repeat the signal.If youu see in the file I have already created a single cycle but sending the speed and time data in the look up table and got the single cycle .I want to repeat the cycle.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2017년 10월 30일
편집: Fangjun Jiang 2017년 10월 30일
It is somewhat difficult to repeat a user defined signal input in Simulink. In your case though, I can think of a solution.
Since you have the single cycle data in the 1-D lookup table, your must know the time duration of your single cycle signal. Let's say the data is from time 0 to time 8.4 seconds, you can add an "Interpreted MATLAB Function" block between the Clock and the lookup table block. The function you need to specify is mod(u,8.4), you will then get an endless repeat of your single cycle signal.
  댓글 수: 6
Harini pushparaj
Harini pushparaj 2017년 10월 30일
In the code you have mention the length of the vector as 80 know .Here the problem is I should also calculate the length of the vector because the single generated is according to the data collected in time.So I should measure the length of the signal ,see where it ends and reset it again to zero and repeat the same.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by