....
> Example discrepancy (stopwatch) when x=250:
>
> 1 hour total running time more than doubles to 2 hours 3 minutes (!)
>
> Any suggestions as to cause and plausible remedy?
>
If you are using just the wait milliseconds, then this node guarantees
that it will wait at least the time wired to it. The non-determinism
will add up and up. There is another node, the wait ms multiple, that
does some internal math to wait until the next multiple of the delta.
In your case, it will determine the time and wait until the next
multiple of 250, which will often be less than 250ms.
As the other response pointed out, the wait can either run in parallel
with other things on the diagram, or it can be running in sequence and
adding to the 250ms delay.
By the w
ay, the wait ms is usually sufficient to make up for lost time,
but if not, another approach is to add a shift register to your loop,
measure the total time the loop has been running, divide by i, and
determine how much time to sleep. This way when the loop gets one
iteration behind, the delays go to zero trying to get back on schedule.
Greg McKaskle