01-19-2016 03:08 PM
Hi community!
I'm a very new Labview user, and I'm posting because I'm not sure the question to ask, so here goes.
I was given a VI to use for some very rudimentary data collection. My problem is that I would like to be able to log data every 1 second, and no matter what computer I use, the data is logged periodically anywhere from every 2-7 seconds, which is unhelpful for what I want to do.
So, to sum up:
I want to collect 1 data point per second per channel, and not kill my computer.
I have attached my VI.
Thank you very much to anyone who might be able to help!
PS- I am using 2 NI 9211 USB DAQ's for my data aquisition.
Solved! Go to Solution.
01-19-2016 04:43 PM - edited 01-19-2016 04:44 PM
1. No need for a Timed Loop. Just use a normal While Loop.
2. Make your task a Continuous sampled at 1Hz. Now the DAQmx Read will limit your loop rate.
3. Do not create, start, and clear your DAQmx task with each loop iteration. Set it up once before your loop and close it once after the loop.
4. Make your life A LOT easier and use the DAQmx Configure Logging to tell DAQmx to stream the data straight to a TDMS file.