Re: SDL-News: Timers

Subject: Re: SDL-News: Timers
From: Rick Reed TSE (
Date: Fri Apr 07 2000 - 09:33:32 GMT

The originator of this message is responsible for its content.
-----From Rick Reed TSE <> to sdlnews -----

On 06/04/2000 17:35<> wrote:

> I have an array and I would like to associate with
> each entry of the array a timer.Does anyone know if
> and how I could do such a thing?

Assuming that you SDL tool works correctly, this is quite simple - you just
give the timer a parameter using the same sort of data as the index of the
array. This is then effectively an array of timers. When you SET/RESET the
timer, give the index value of the actual array element you want timed. When
you receive the timer signal it has a parameter equal to the timer parameter
of the corresponding SET.

TIMER T(Integer):=1;



sets two timers. They run concurrently.

The corresponding signals are T(1) and T(2).

The actual set/reset values can be expressions.

You can also test for the timers being active by (ACTIVE(T(n)).

Rick Reed -
Tel:+44 1455 55 96 55 Fax:+44 1455 55 96 58 Mob.:+44 7970 50 96 50

-----End text from Rick Reed TSE <> to sdlnews -----

This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT