
The Delay function models the Laplace expression e-sT, where T is the delay time and s is the Laplace operator.
The input signal values are placed in a queue. As time progresses, the signal values move to the end of the queue and are placed on the output line.
If the delay time is much larger than the time step Dt, then the size of the queue might become excessively large. To prevent this, sampling is used. The input values are sampled N times (# of Samples in Delay Time) in the specified Time Delay, and only these samples are placed in the queue.
Care must be taken so as to ensure that the number of samples is large enough to accurately represent the delayed signal, while minimizing the amount of storage required.
Due to the stair-case nature of the output (result of sampling), an extra delay of Time Delay/(2*N) is introduced. This is compensated for internally by reducing the delay time slightly. If necessary, smoothing of the stepping effect of sampling can be accomplished by filtering the Delay output through a first order lag.
Name for Identification |
Text |
Optional text parameter for identification of the component. |
||
Time Delay |
|
REAL |
Constant |
Enter the required time delay [s]. |
|
|
|
|
|
# of Samples in Delay (T) |
|
INTEGER |
Literal |
Number of samples within the Delay Time |
|
|
|
|
|
Interpolate Output |
|
Choice |
|
Select Yes or No.
If Yes is selected, the component will output a signal array of dimension 2. The second element being reserved for the interpolated time. |
|
|
|
|
|
Initialize Buffer With |
|
Choice |
|
Select Input at Timezero or Specified Value.
If the buffer is initialized with Input at Timezero, the buffer is initially filled with the input value at timezero. In other words, there is no input data transition to this component. If Specified Value is selected, the buffer is initialized with the quantity specified in the Initializing Value parameter. |
|
|
|
|
|
Initializing Value |
|
REAL |
Constant |
Enter a value to initialize the buffer. This parameter is enabled only if Initialize Buffer With | Specified Value is selected. |
|
|
|
|
|
Fortran Comment |
|
Text |
|
An optional Fortran comment. The text entered here is included in the project Fortran file |
|
|
|
|
|
Dimension |
|
INTEGER |
Literal |
Enter the dimension of the input signal.
Note that when Interpolate Output | Yes is selected, the output signal array size will be twice that specified here. Every even element in the array represents the interpolated time of the corresponding odd element output signal. |