Delay¶
- class pathsim.blocks.delay.Delay(tau=0.001)[source]¶
Bases:
BlockDelays the input signal by a time constant ‘tau’ in seconds.
Mathematically this block creates a time delay of the input signal like this:
\[\begin{split}y(t) = \begin{cases} x(t - \tau) & , t \geq \tau \\ 0 & , t < \tau \end{cases}\end{split}\]Note
The internal adaptive buffer uses interpolation for the evaluation. This is required to be compatible with variable step solvers. It has a drawback however. The order of the ode solver used will degrade when this block is used, due to the interpolation.
Note
This block supports vector input, meaning we can have multiple parallel delay paths through this block.
Example
The block is initialized like this:
#5 time units delay D = Delay(tau=5)
- Parameters:
tau (float) – delay time constant
- _buffer¶
internal interpolatable adaptive rolling buffer
- Type:
- reset()[source]¶
Reset the blocks inputs and outputs and also its internal solver, if the block has a solver instance.