Delay('Expression','NumberSamples*')
Parameters ending with * are only evaluated once at the start of the acquisition.
Description
This function returns a delayed copy of the ‘Expression’ signal. The delay is specified in number of measurements ('NumberSamples'). The result is a signal curve with the values of the original signal for ‘NumberSamples’ before the current time.
To avoid a memory overflow, ‘NumberSamples’ is limited to 10,000.
Tip |
|
|---|---|
|
The time base of the function is relevant for the number of measurements for different time bases of the measured value and function. |
|
Example
A measured value should be displayed delayed by 2 measured values and by 10 measured values.
Task description
For the chosen time base of 100 ms, a delay of two measured values corresponds to a time delay of 0.2 seconds and a delay of 10 measured values corresponds to 1 second.
Solution
In the figure below the blue curve shows the original signal and the red curve shows the delayed signal by 2 measured values (= 0.2 seconds). The green curve shows the delayed signal by 10 measured values (= 1 second).
