signal builder: repeat a signal for n times in one simulation (not to be confused with running in succession)

조회 수: 50 (최근 30일)
Hello,
is it possible to repeat signals of the signal builder periodically, so that it would be possible to run maybe 6 times cycle 1 and 1 times cycle 2 without building up ultra-long signals by hand? Running signals in succession is not what I am looking for, since the system changes from cycle to cycle (e.g. heating up).
Regards
Andreas
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2011년 7월 15일
+1, Good question! I am bump it up to see if there is an easy way to generate a periodic signal in Signal Builder block.

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

답변 (6개)

MarkB
MarkB 2011년 7월 19일
I don't know of a good way to do this using "Signal Builder", but the "From Workspace" block allows you to specify repetition after all the data has been used once.

Doug Eastman
Doug Eastman 2011년 7월 19일
Currently the only options for extending the signal beyond the time range in which it is defined in the Signal Builder block are Set to zero, Hold final value, or Extrapolate.
You could either use the From Workspace block or Inport block to pull in data directly from MATLAB or you could programatically build your Signal Builder block using the SIGNALBUILDER function.

Fangjun Jiang
Fangjun Jiang 2011년 7월 19일
It sounds like that currently Signal Builder block can't do that. The Repeating Sequence block from Source library can easily do this. I think Signal Builder block needs to be expanded to have this capability. Imaging that all your signals are built into groups, this inconvenience prevents your from press that "run all" button.

Andreas
Andreas 2015년 11월 10일
Release 2015b - still no repeating of signal builder blocks possible. Is there any uservoice forum for matlab to push this idea?

Praveen Kumar Kuppusamy
Praveen Kumar Kuppusamy 2017년 3월 29일
But the 'Lithium 2rc circuit' model of mathworks has the repeating blocks. Anyone knows how they made it ?

Praveen Kumar Kuppusamy
Praveen Kumar Kuppusamy 2017년 3월 29일
  댓글 수: 1
Andreas
Andreas 2017년 3월 29일
It's not repeating - try to double Simulation length and you will see the following:
Still looking forward to repeat custom signals. Of course you could work with workspace variables ..

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

카테고리

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