Info
此问题已关闭。 请重新打开它进行编辑或回答。
Enlarge sample time in simulink
1 次查看(过去 30 天)
显示 更早的评论
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
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
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.
0 个评论
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!