02-11-2010 04:33 PM
HI Fellow LabVIEW Lovers,
Could someone let me know why the attached 2 VIs are not running at the same speed as I would expect?
Thanks in advance.
Bryan
Solved! Go to Solution.
02-11-2010 04:45 PM
Inside the event, the value is only written to the value signalling event on the timeout, which is every 100 ms.
Outside the event, it is happening in parallel, so it writes on every iteration of the loop, and the timeout actually never occurs.
02-11-2010 05:02 PM
02-11-2010 05:13 PM
02-11-2010 05:41 PM
BryanL wrote:
Thanks Ravens, but should the loop also got delayed by the same 100ms delay when the random number was outside the event structure...or did i miss something very basic here?
No. The timeout is the event that occurs if no other event occurs during the timeout period. Outside, the event structure, the value(signalling) gets re-seeded every time it processes the event from the last iteration. So the loop runs near instantaneously and the timeout event will never occur because the value(signalling) event is always firing off the event again.