Hello;
That function is a syncrhonous NI-DAQ function which will make the execution pointer of your code to get stuck there until the buffer is ready to be read. The time that will take is a function of the buffer size and the scan rate.
In case you want your application to don't suck up the CPU time, and be able to execute other tasks while waiting for the buffer to be filled up, you need an asynchronous DAQ task.
In this context, a synchronous function call, such as SCAN_Op will wait in the function till all the specified number of scans are acquired and then return. Asynchronous function calls allow you to do other operations in the background. Also, you can implement occurrences and events when you take the asynchronous approach. There is a good Develop
er Zone document called "An Overview of DAQ Events and Occurrences" if you are interested. You will see several documents, including that one if you search http://www.ni.com/support for "asynchronous".
Hope this helps.
Filipe A.
Applications Engineer
National Instruments