Sample time in constant block Simulink.

1 次查看(过去 30 天)
Jose
Jose 2013-5-21
Hi,
I want to generate binary data from 2 different constant blocks and after concatenate it, the first block with 13 bits and the second with 4 bits, the require sample time is Ts, then I set Ts in each block, but here the problem: in the first each sample is every Ts/13 seconds and in the second block is every Ts/4 seconds, A first solution was set in this blocks Tsa=13*Ts ans Tsb=4*Ts, but now I have two blocks with diferrent sample time and I can't concatenate it.
Somebody can help me with this ??
Thanks.
  3 个评论
Kaustubha Govind
Kaustubha Govind 2013-5-21
How do you implement the Constant value to binary data conversion? Is it using a Simulink library block?
Jose
Jose 2013-5-21
编辑:Jose 2013-5-21
I'm writing a vector with 0's and 1's in one constant block [1 0 1 1]... setting Ts in 4us, then between each 0 or 1 is 1us (1us is what I neeed), and in my 13 bit vector I have to setting Ts in 13us (1us between each value). We can see diferent Ts in each block (4us and 13us), when I try to caoncatenate it I get an error because this different Ts in each block.

请先登录,再进行评论。

回答(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