04-06-2006 01:11 AM
04-07-2006
11:49 AM
- last edited on
04-21-2024
05:26 PM
by
Content Cleaner
Hi Meka,
What kind of DAQ card are you using? Does this error happen immediately, or does the program run for a little while? Take a look at this KnowledgeBase article I found, which deals with the error you are getting:
Try lowering the sampling rate, and see if you still get the error. If you don't, then it looks like increasing the size of your buffer may fix the problem.
Let me know how it goes!
Justin M
National Instruments
04-10-2006 12:28 AM
Hi Justin,
Iam using 6221 card.Iam getting this error,immediately when I try to read the data.Iam using 4 analog voltage channels as input.Iam creating the buffer size as NoOfChannels * samplingrate * duration.Iam getting the same error when I try to run the example program in VB National Instruments\NI-DAQ\Examples\Visual Basic 6.0\Analog In\Measure Voltage\Acq-Int Clk program by using the sampling rate as 250khz,and number of samples per channels as 500000.If I use low sampling rate I am not getting this type of error.
Regards,
Meka
04-10-2006
10:22 AM
- last edited on
04-21-2024
05:27 PM
by
Content Cleaner
Meka,
The M Series devices have a specified maximum sampling rate for a single channel. Past a single channel, the maximum sampling rate is then divided down depending on the number of channels sampled. The reason for this is because each M Series device has one analog-to-digital converter (ADC). Every channel in a scan list must pass its data through this one ADC. To allow for this, the M Series devices also have a multiplexer (MUX). Because of settling time limitations with the MUX switching, the maximum sampling rate is the specified single channel sampling rate divided by the number of channels be scanned. In your case, because you are using 4 channels, the maximum sampling rate you can achieve with the 6221 is:
250 KS/s / 4 = 62.5 KS/s
If you need a sampling rate of 250 KS/s for each channel, you may be interested in our S-Series devices. These devices have a separate ADC for each channel, allowing all analog channels to run at the maximum sampling rate simultaneously. Take a look at the PCI-6143, which can sample at 250 KS/s on all of its 8 channels at the same time.