LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I interrupt continuous acquisition?

I have a PCI6014 and I am acquiring analog input continuously and writing to disk with a slightly modified version of the sample program "DAQdoubleBuf" for Lab Windows/CVI. I want to do this for an indefinite amount of time, and I want to be able to stop aquisition at any time by hitting key on the keyboard or something like that. Is there a function that will stop the while loop as it chugs through the pre-defined number of halfbuffers? Thanks.

Tom Butler
University of Washington
0 Kudos
Message 1 of 2
(2,456 Views)
The easy way (however, it may be slow, I don't really know at this point) is to place a call to the function "ProccessSystemEvents()" in the loop. Then if you have, for example, a stop button, it will check for a call to the callback function associated with that button. Use that button to change the condition of your loop to the "don't cycle" setting and then it should exit the loop.

Hope this helps.

-John
0 Kudos
Message 2 of 2
(2,456 Views)