Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Enlarge sample time in simulink

조회 수: 1 (최근 30일)
Elie
Elie 2012년 11월 14일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello everyone,
I'm trying to enlarge the time of each sample in a waveform. I have a waveform with samples between 0 and 7 and each of them lasts a very short time. I have a succesions of 20 values and then, a constant value until next 20 values. I would like to enlarge the time that the 20 values lasts, in order to not have this constant period between each 20 values group. I can not found any block doing this for me ... I tried with buffer / unbuffer without success. Hope somebody will understant my problem and maybe have a solution !
Thanks for help,
Elie
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2012년 11월 28일
Elie: If you increased the sample-time of the signal, will you not drop samples when the signal is not constant? You cannot have a signal with a variable sample-rate in Simulink (although I think you could create an S-function block that will process your block at a variable rate).

답변 (1개)

Babak
Babak 2012년 11월 28일
You can use, Simulink block named "Signal Generator" or "Repeating Sequence" or a "Pulse Generator" in the sources library of Simulink's library browser.
When you say "Waveform" you ned to mention which block you are using, because Simulink does not have any block called "Waveform".
Using the blocks I mentioned, you can design whatever waveform you like to have.
You cannot have a few blocks/signals with sampling time different from the sampling time of the rest of the model.
you can change the sampling time of the model in the configuration parameter's dialog box.

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by