I'm an old hand at LabVIEW, but fairly new at EVENT structures.
I ran into a problem in my program, I thought I diagnosed it, and wrote a simple tester (attached) to test my theory.
The tester has a WHILE loop.
Inside the WHILE loop is an event structure.
One event is the STOP button - it stops the WHILE loop.
Another event is the WAIT button - it waits for 200 mSec and then continues.
Another even is the TIMEOUT - set for 1000 mSec. It calculates the time interval since the previous TIMEOUT event, and displays the latest 10 intervals.
When run, it continuously displays 1000 or 1001 mSec as expected.
When you click the WAIT button, I expected it to show a 1200 mSec interval or thereabouts.
Instead, I see
a 1300, 1500, even 2400 mSec interval!
What the heck causes all that?
If it was the GUI, drawing the button changing states, then I would expect it to be proportionate to the button's screen size. I resized the button, but I don't see any such link.
I'm on Win2000, 1500 MHz P-4. I wouldn't expect it to take 1000 mSec or more just to draw a single button.
What's going on?