continuous signal delay

I have continuous signal generated from simulink and i want to make dp = p(k)-p(k-1) where p(k) is the current and p(k-1) is the last value from last reading of simulink.

Risposte (3)

Kaustubha Govind
Kaustubha Govind il 6 Giu 2012

2 voti

Feed p(k) into the Unit Delay block to get p(k-1) and subtract the latter from the former to get p(k)-p(k-1).
mado
mado il 6 Giu 2012

0 voti

but this unit delay is for digital and my signal is analog

2 Commenti

Kaustubha Govind
Kaustubha Govind il 7 Giu 2012
Did you mean to say that Unit Delay is a discrete-time block? Yes, but in your question, you said you need p(k-1), which is a discrete-time representation.
Kaustubha Govind
Kaustubha Govind il 7 Giu 2012
Perhaps you need the Transport Delay block? http://www.mathworks.com/help/toolbox/simulink/slref/transportdelay.html

Accedi per commentare.

mado
mado il 7 Giu 2012

0 voti

I tried transport delay but the output of this block is zero , i don't know why

2 Commenti

Kaustubha Govind
Kaustubha Govind il 8 Giu 2012
It is probably zero for the length of the delay that you've specified. Increase the simulation stop time to see if the delayed signal is eventually displayed.
mado
mado il 8 Giu 2012
thanks , its working

Accedi per commentare.

Tag

Richiesto:

il 6 Giu 2012

Community Treasure Hunt

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

Start Hunting!

Translated by