2 views (last 30 days)

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 TodayFind the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
## 13 Comments

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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

## 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

⋮## 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.