LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to run a delay that i can interrupt

I am writing to read a channel then delay for say 60 seconds then read again. I need to be able to interrupt the delay if a certain thing happens. Is there any other function beside the Delay() function? Can you interrupt the Delay() function? thanks, Dgober
0 Kudos
Message 1 of 3
(2,643 Views)
Instead of using Delay() and then trying to interrupt it, why not use a timer with the interval set to 60 seconds. Read your channel in the callback for the timer and let anything else happen between EVENT_TIMER_TICK's.
See the timer.prj sample project that ships with CVI.
0 Kudos
Message 2 of 3
(2,643 Views)
i didn't even think of that. Thanks for all your help
0 Kudos
Message 3 of 3
(2,643 Views)