Richard,
Just create a "last value" indicator (initialized to FALSE) and set it equal
to your Boolean in the loop. Then you write to your log only if the Boolean
is TRUE and the "last value" is FALSE.
Tom
"Richard" wrote in message
news:chr0va$kk4$1@mawar.singnet.com.sg...
> Hi,
>
> I've created a simple warning a system to light up a boolean when my
> measurement exceeds a preset value. However I would like to data log the
> time or date of the event when such event occurs.
>
> The problem is when the warning lights up my log in multiple time due to
the
> while loop. Could someone please teach me how to generate a single impulse
> from the boolean so that my log which is put into a case loop would only
run
> once when the boolea
n lights up?(single shot) Or is there other methods
>
>
> Thanks in advance
>
> Regards,
> Richard
>
>