05-11-2012 12:34 PM
I am using CVI 2009 and TestStand 4.1.1 for testing products.
I create an Async timer when I call a function from Teststand that powers up the UUT.
My timer seems to start OK, but there are only 3 Tick Events before the timer callback is no longer called.
What could cause the timer events to stop?
Thanks
Solved! Go to Solution.
05-14-2012 12:24 AM
1. Discarding the timer.
2, Timer callback is stuck or delayed and doesn't return so timer events are queued up and not serviced.
3, Another async timer was created prior to the one you're using for UUT power up so that timer has priority and is busy handling enqueued callbacks so your UUT power callback is getting starved.
4. Async timer thread can't get scheduled.
I recently solved an async timer scheduling problem by using an LED indicator on my GUI and setting it ON when entering my async timer callback and off when I left. I made sure it stayed on at least 200 msec so I could see it. Main thread set the LED on / off per a global since you can't manipulate the GUI directly from the async callback.
05-14-2012 06:49 AM
Thanks.
My timer got stuck servicing my CAN bus data acquisition and the events backed up.