Simplicty and flexibility!


Can I add a time-delay during stages of a Control Procedure?


Started by Ian Kelly
Search
You will need to Sign In to be able to add or comment on the forum!

Can I add a time-delay during stages of a Control Procedure?

I'm using LegEasy 6.53 and frequently need to run a series of 19 procedures. 

  • - In theory I can group them together under a Control Procedure, but if I do that the system crashes when the Control Procedure runs.
  • - If I run the procedures manually in sequence, they all work.

I'm wondering if it is possible to create a Control Procedure with adding a short (5-second) time delay between each procedure in order to allow my computer to recover and avoid a system crash. 
Is this possible?


Written by Ian Kelly 16/05/19 at 22:58:39 LegEasy 6 Windows

Re:Can I add a time-delay during stages of a Control Procedure?

There are ways to do this but if you avoid the problem is hard to say. 

In 6.53 you don't have any timer so you would have to resort to a loop inside your control procedure.

define "timer" time. 
run procedure "one" .
timer := current time .
while timer+5<current time do
end.
run procedure "two" .

timer := current time .
while timer+5<current time do
end.

etc.

I'm not sure this would actually alleviate the problem.

The problem is most likely that you in a control procedure run everything in one scope so the problem that cause the GPF build up.

Is it always the same DQL that end up crashing or does it crash at different places?

You can try to run them as a chain menu.

If this was DE85 or DE9 the options would have been much wider.


Written by DataEase 20/05/19 at 11:09:55 LegEasy 6 Windows
DG3_ForumList