> Using "tick count" I can count the time but I need the initial value of time
> when switched to true to be stored somehow, so as to extract it from the
> final one (switch to false).
>
To maintain a value from one iteration of a loop to the next, your best
bet is a shift register. Popup on the right or left edge and Add a
Shift Register. Anything written to the right edge inside the loop can
be read from the left edge. A value written to the left edge outside
the loop is the initial value. Reading from the right edge outside the
loop is the value of the last iteration.
You want to use a shift register, writing the value when you read the
timestamp, then passing the value through unchanged until the comparison
with the current time shows enough t
ime has elapsed.
Be sure to look at examples that use the shift register too.
Greg McKaskle