Effacer les filtres
Effacer les filtres

Sample time in constant block Simulink.

2 vues (au cours des 30 derniers jours)
Jose
Jose le 21 Mai 2013
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 commentaires
Kaustubha Govind
Kaustubha Govind le 21 Mai 2013
How do you implement the Constant value to binary data conversion? Is it using a Simulink library block?
Jose
Jose le 21 Mai 2013
Modifié(e) : Jose le 21 Mai 2013
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.

Connectez-vous pour commenter.

Réponses (0)

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by