pathsim.blocks.delay module

class pathsim.blocks.delay.Delay(tau=0.001)[source]

Bases: Block

Delays the input signal by a time constant ‘tau’ in seconds using an adaptive rolling buffer.

Parameters:

tau (float) – delay time constant

reset()[source]

Reset the blocks inputs and outputs and also its internal solver, if the block has a solver instance.

update(t)[source]

Evaluation of the buffer at different times.

Note

The buffer is SISO and the ‘update’ method therefore is performance optimized.

Parameters:

t (float) – evaluation time

Returns:

error – deviation to previous iteration for convergence control

Return type:

float

sample(t)[source]

Sample input values and time of sampling and add them to the buffer.

Parameters:

t (float) – evaluation time for sampling