Hi Adlamb,
It looks like your CPU is being heavily loaded. This is why you have poor updates. The basic code you posted during every iteration of the while loop has to setup the DAQ task, perform the task, read the results then open a new file and write the data, close the file etc, every loop. Usually with todays desktops this is not a problem.
Another thing with the VI is that there is no delay in the loop. This means the while loop is setup to run as fast as it can, it will hog CPU resources. Do you notice that other applications also suffer from very poor performance whilst this program is running? CHances are that id you bring up the Windows Task Manager the Labview.exe will be consuming all available CPU time.
What I have done here is setup the DAQ task for you using the DAQmx vi's. This is done outside the while loop. All that is then done in the while loop is to read the samples taken from the buffer (system RAM). This should alleviate a lot of load on the CPU. This is more for a troubleshooting measure at the moment. You should hopefully see some performance increase.
If this is the case then we can look at simplifying the writing data to disk. This should give you a bigger increase as file I/O is one of the more time consuming aspects of PC's.
So run the modified VI below and let me know if you see an improvement.
Best regards,
Matt Poole | Applications Engineer | National Instruments