How to run a lisp at regular intervals

How to run a lisp at regular intervals

richie_hodgson
Collaborator Collaborator
535 Views
2 Replies
Message 1 of 3

How to run a lisp at regular intervals

richie_hodgson
Collaborator
Collaborator

Hi I am looking for a way to run a lisp at regular intervals, this may be a .net thing or something but I was wondering if it could be done in lisp somehow. I haven't found anything convincing yet on the web.

Richie
0 Likes
Accepted solutions (1)
536 Views
2 Replies
Replies (2)
Message 2 of 3

dbroad
Mentor
Mentor

One possibility would be to add a command reactor. Save the value of one of the variables that deal with date or time (TDSUSRTIMER, DATE, CDATE) in the reactor.  Then in the callback, check the current value of the variable and compare it with the saved value.  If the value exceeds the interval, then save the new current time and perform the tasks.  Reactors have limitations though as to what they are allowed to do.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 3

richie_hodgson
Collaborator
Collaborator
Accepted solution

Hi thanks for that, it looks promising but I need to do some research about reactors, will think about htat one.

 

Regards

 

Richie

Richie
0 Likes