12-06-2007 11:19 AM
Hello,
We are working on a project collecting data from a hybrid rocket motor for
University research. We are using a NI USB-6008, which has a sample rate of
10kHz. We are using 3 channels and getting a sample rate of ~60 samples per
second. I have attached the VI. Is this slowed by software, or physical
computer computation speed? This sample rate needs to be much higher. Any help
is greatly appreciated.
- Theo
12-06-2007 11:58 AM
12-06-2007 12:02 PM
Theo,
You have configured your analog input to read one sample per channel per loop iteration. With all the other stuff going on in your loop, I am not suprised by the rate you are getting. This is basically software timed analog input. You need to configure your analog input to acquire multiple channels, multiple samples. This way, the hardware will acquire data at the rate you configure it to run. In example finder, look at "Cont Acq&Graph Voltage-Int Clk.vi" for an example on how to configure analog input using sample clock and hardware buffering (not as horrible or hard as this sounds). Also keep in mind, non-simultaneous sampling DAQ cards (like your 6008) multiplex the analog inputs. So best you could do is 10K Samples/sec divided by the number of channels (3 in your case) = 3333samples/second/channel.
-cb
12-06-2007 01:34 PM
Thanks very much, I'm giving that a shot and I'll post back my results or questions as issues arise.
- Theo
12-07-2007 11:46 AM
Hi Rocket 154,
If you navigate a bit through the links (Basic Programming with NI-DAQmx » Getting Started with NI-DAQmx Programming in LabVIEW) you’ll end up with some great resources. I recommend Learn 10 Functions in NI-DAQmx and Handle 80% of your Data Acquisition Applications. It will detail many of the functions you can use and give you a feel for proper code style in LabVIEW.
I hope that helps.