Jump to content

"program active" testable in IF statements


oskrypuch

Recommended Posts

From the Program Summary page, programs can be listed as Enabled (on/off), Activity (idle/running 'xxx') and Status (true/false)

 

In an IF statement you can test for the Status like so:

 

If
   Program 'DoSomething' is True
...

 

I don't see any way to directly test for the Activity of a program, IOW whether it is currently idle or running Then or Else, etc.

 

You could handle it with a separate Program "variable", but that is a bit clumsy.

 

A feature request.

 

* Orest

Link to comment

Hello Orest,

 

In cases of programs that do not have Wait/Repeat statements, the additional overhead for checking activity (the duration of which might be between milliseconds to few seconds in case of communications errors) is a bit too much.

 

Do you have any specific use cases in mind for which this is needed?

 

With kind regards,

Michel

Link to comment

It is exactly that application, to check a program that is in a WAIT loop. Something like this:

 

 

Program CheckStatus

 

if Program 'DoStuff_wait_DoMore Stuff' is not active

Then ...

 

 

 

Program DoStuff_wait_DoMore Stuff

if

Then

wait xx

MoreStuff

 

 

 

I can also accomplish this with Program pseudo-variables, basically setting a semaphore to allow for a testable condition, when the second program is running its Then statement.

 

* Orest

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...