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,598 Views)
Hello,
You can use either ProcessDrawEvents or ProcessSystemEvents so that your program can process other events before returning from a callback function for another event.

ProcessDrawEvents allows LabWindows/CVI ro process only user interface events, whereas ProcessSystemEvents process both user interface and system events.

Mika Fukuchi
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,598 Views)