01-29-2015 07:06 AM - edited 01-29-2015 07:11 AM
Good morning
I am collecting charging and discharge data of a capacitor during different times.
Using the circuit attached, what´s the best way to set the sample rate per channel and so that I can apply hours measuring systems without getting slow operation.
thank you
Solved! Go to Solution.
01-29-2015 07:22 AM
I don't see a circuit attached. That is a block diagram.
1. With continuous samples, do NOT wire up the "Number of Samples Per Channel" on the DAQmx Timing VI. You are just limiting your buffer, which you want to keep very large.
2. There is no need for the Wait in the loop. The reading of the DAQ will limit your loop rate.
3. There is no point in reading that spreadsheet file every time you iterate your loop. Move that read to be before the loop. That will help speed up your loop quite a bit.
4. Set your sample rate to whatever you need for your measurements. The number of samples to read at the DAQmx Read should be based on however many samples you want to process at a time. Just make sure your code can keep up with your sample rate of the DAQ by either increasing the number of samples to read per iteration or lowering your sample rate.
01-29-2015 07:34 AM