Finn's LabVIEW Goldmine:
implements a time-delay. The time-delay can be adjusted during
run-time. A typical use is shown in Figure 1 (from inside a While loop).
to the function:
the input signal that is to
[s] is the time-step.
For real time time-delay implemented in a While loop, timestep
be set equal
to the cycle time of the While loop.
the value of y, the initial output of the function, that is: the value
of y until the simulation time has passed the time-delay. If you want
the init_output to be equal to the present input (u), you wire
init_output to u.
time-delay. It can be adjusted by the user during the simulation.
is the assumed maximum value of the (adjustable) time-delay.
timedelay_max is used to set the size of the internal array used to
implement the time-delay in this subVI. It should not be changed during
(boolean) can be used in
following alternative ways (the first of these can be used in most
- By connecting a First
to the Init
input, y gets value
y_init when the VI starts.
connecting a boolean
terminal (which typically stems from a button on the Front
to the the Init
input, y can be reset
to init_output at any time by giving the boolean terminal a
(typically by clicking a button).
from the function:
to include the Time-delay in your block-diagram?
the subVI LabVIEW file to any folder (do
not open it directly in LabVIEW).
the subVI to the block-diagram of your VI
via Functions Palette / Select
a VI etc. Then connect its
inputs and its output to the proper signals (wires) in the
block-diagram. (It is not necessary to copy the block-diagram code of
the subVI explicitly into your program.)
reason why I have developed
this subVI, is that the inbuilt time-delay functions in
not have sufficient functionality
simulators, or can not be used, or are complicated to use, in ordinary
[Finn 's LabVIEW Page]
Updated 30 August 2016 by Finn