Engee documentation

Discrete Variable Time Delay

Delay the signal for a variable time value.

discrete variable time delay

Description

The Discrete Variable Time Delay block delays the input signal by the value specified by the D input. At each simulation time step, the Discrete Variable Time Delay block stores the time and input value in an internal buffer and outputs the previous input value defined by the delay input.

If the delay input is not an integer time step, the Discrete Variable Time Delay block performs linear interpolation. If Direct feedthrough is selected, the delay can be less than the simulation time step.

Ports

Input

In - incoming signal
scalar | vector | 1xN matrix | Nx1 matrix

Input signal.

Data types: Float64.

D - signal delay
scalar | vector | 1xN matrix | Nx1 matrix

Incoming delay signal.

Data types: Float64.

Output

Out - output signal
scalar | vector

Returned delayed signal.

Data types: Float64.

Parameters

Maximum delay (s) - expected maximum input delay D
1 (by default) | scalar

Specify the expected maximum delay on the D input.

The Maximum delay parameter determines the size of the input buffer. If the input delay exceeds the specified maximum delay, it is trimmed to the allowable maximum value.

By default: 1.

Initial conditions - initial conditions of the signal
0 (by default) | `scalar | vector | matrix

Specify the initial conditions of the signal.

The unit outputs the specified values until the first delayed signal is output.

Set 0 to realise zero initial output, or specify previous signal input values to start from a steady state.

The number of input values required is , where is the delay value at , and is the interval between calculation steps.

Suppose, for example, that the signal is a 60 Hz sine wave, the initial delay is set to by the D input of the block, and the interval between calculation steps is 50e-6 s. previous input values of the signal are defined as follows:



временнойвекторпредыдущихвходов

предыдущихвходныхзначенийсигнала
  • By default:* 0.

Sample time - interval between calculation steps
50e-6 (by default) | scalar

Specify the interval between calculation steps.

  • By default:* 50e-6.

Minimum value: 1e-8.

Direct feedthrough - direct feedthrough On (By default) | Off

If this box is checked, the block can operate with a delay shorter than the simulation time step. Otherwise, the block extrapolates the input values.