05-21-2008 09:23 PM
05-22-2008 01:15 PM
05-22-2008 06:15 PM
05-23-2008 01:11 PM
05-23-2008 03:35 PM
a timed loop fires say every 1 sec, so I may have up to 1 sec latency between the clicking of a switch, an the action required.
If I set the loop interval to less than 500 ms, then I get long delays between the writing to the variable, and when it actually occurs. Even shorter times, I may never see the change in the variable.
I don't need fast updates, I just need them to start occurring without a delay when the event happens. In addition, if possible to have some way to allow the next setting of the variable to happen when the first one is finished.
In effect the sequence required is
1) Write to the variable
2) dissallow any further writes to the variable
3) check if the variable state has changed to that expected, and reallow variable write access
4) have a safety check, so if the write does not happen after a given time, time out, and reallow variable writes
05-28-2008 06:08 PM