02-28-2008 03:19 PM
Hello,
I have already posted a similar message in the forum before but it is a bit different.
What I am trying to do is to acquire a voltage signal and analyze it sample by sample. I am doing that through the acquire N samples setting of the DAQ card and then use a for loop whose number of iterations is equal to the size of the group.
When I use the card A there is a limit of the minimum size of data that I can use. Bellow that limit I receive an error message saying that the data that I am trying to read is not available and that I have to increase the size of the group to avoid that. If I increase the size of the group then the signal that I am processing is significantly out of date.
When I use a faster DAQ card and at the same sampling rates I can reduce the size of the group and hence get a more up to date analysis. But the algorithm now runs remarkably slow which also delays the processing of my data.
Why is this happening and is there any way that allows data acquisition sample by sample since my algorithm only works this way.
DAQ Card A: DAQCard-6024E
DAQ Card B: NI 9206
I have also attached an image with the samples extraction loop
Many thanks in advance.
02-29-2008 01:48 PM
03-04-2008 09:47 AM
03-06-2008 11:13 AM
Many thanks for your reply your help is much appreciated.
I simplified my problem for a more clear description. As you mentioned I should be able to acquire any amount of samples at any given rate as soon as the hardware permits it.
When I am acquiring data at 1000 samples/sec at continuous acquisition mode and one sample for the buffer everything works fine.
When I change that data acquisition rate to 100000 samples/sec, then I received an error which I have attached. (See error and data asq is stopped files)
Regarding your reply if I plot the sample by sample data then the signal looks significantly distorted. This is probably to some kind of delay.(see example2.vi)
My problem could be solved if I could increase the sampling rate without receiving the error. I am suspecting that the problem arises with the speed of the RAM. Would it be better if I ran the code in a real time environment?
Many thanks once again for your time and your support
03-06-2008 09:42 PM
03-12-2008 09:28 AM