Asked by William Diaz
on 15 Oct 2019 at 21:33

Hello everyone,

I want to add a delay (a fraction of a step time, I mean 0,054 ms) in a communication system simulation between a transmitter and a receiver. Transmitter is an integer (vector) to bit converter that receives a vector of ones and zeros (122 bits), like this:

Vector = [1 1 1 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 1 0 1 1 1 0 0 0 1 1 1 0 0 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1]

(This is a CAN Protocol data frame, inlcuding stuffing bits)

That I get after Integer to Bit Converter:

That I get at two channels of scope block (with 4 time step - but I need a fraction of a time step):

Thanks in advance.

William

Opportunities for recent engineering grads.

Apply Today
## 13 Comments

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_756686

## William Diaz (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_757080

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_757106

## William Diaz (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_757518

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_757526

## William Diaz (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_757900

## William Diaz (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_757959

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_758022

## William Diaz (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_758800

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_758847

## William Diaz (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_759105

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_759231

## William Diaz (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/485541-can-i-get-a-delay-equivalent-to-a-fraction-of-a-time-step#comment_760181

Sign in to comment.