09-26-2013 04:30 PM
In the DAQ Assisant window, there are two options for reading samples:
1. 'Samples to Read'
2. 'Rate (Hz)'
Could someone please define the meaning of these? the context help did not clearify the meaning of these for me.
Examples would help also:
for example right now I have the settings at:
Samples to Read: 1
Rate (Hz): 200
what does this mean in terms of samples read per second?
Am i recording data at 200 Hz?
Any help would be greatly appreciated.
Cheers,
Oliver
Solved! Go to Solution.
09-26-2013 05:03 PM
What is your sample type (Continuous, Finite Samples, Single Sample)?
If you are using Continuous, then the sample rate is how often a sample is taken. Not sure in the DAQ Assistant, but with the DAQmx Timing VI, the number of samples sets the buffer size.
If you are using Finite Samples, then the sample rate is the same as the Continuous, but the number of samples is how many samples you want in a single acquisition. The DAQ card will not continue to gather samples between reads. It only gathers the defined number of samples with each read.
If you are using Single Sample, then neither of those settings are useful. The card will just take a single sample and be done.
09-26-2013 05:14 PM
09-27-2013 12:05 PM
Hey thank you crossrulz, I am using continuous for my sample type. Ok so I am taking 200 samples per second becuase I have my Rate set to 200, but what about 'samples to read?'
I have 'samples to read' set at 1, what does that mean?
09-27-2013 12:07 PM - edited 09-27-2013 12:07 PM
Thank you Dennis_Knutson, so if samples to read is just a count of how many samples to retrieve, what does it mean for me if i am sampling at a rate of 200 Hz, but have samples to read set at 1?
If i want to get 200 samples a second what should i have samples to read set at?
09-27-2013 12:31 PM
09-27-2013 04:45 PM
@OliC wrote:
Hey thank you crossrulz, I am using continuous for my sample type. Ok so I am taking 200 samples per second becuase I have my Rate set to 200, but what about 'samples to read?'
I have 'samples to read' set at 1, what does that mean?
That means you will read 1 sample each time the DAQ Assistant is called. A sample is added to the buffer every 5ms, so there will be likely be more data in the buffer. Therefore you might want to read more. For instance, if your loop takes 1 second to read, you should read at least 200 samples to keep the buffer cleared.
11-20-2018 06:02 PM
What everyone is talking about is what I thought. I set the rate to 10hz, then the sample to 1, thinking I'm sampling at 10hz and getting 1 sample per second and that is not the case. I'm running DaqAssitant in Continuous. No matter how long I run, it will only give 1 sample. Unless I increase that number. The explanation is confusing from labview.
@crossrulz wrote:
@OliC wrote:
Hey thank you crossrulz, I am using continuous for my sample type. Ok so I am taking 200 samples per second becuase I have my Rate set to 200, but what about 'samples to read?'
I have 'samples to read' set at 1, what does that mean?
That means you will read 1 sample each time the DAQ Assistant is called. A sample is added to the buffer every 5ms, so there will be likely be more data in the buffer. Therefore you might want to read more. For instance, if your loop takes 1 second to read, you should read at least 200 samples to keep the buffer cleared.
@crossrulz wrote:
@OliC wrote:
Hey thank you crossrulz, I am using continuous for my sample type. Ok so I am taking 200 samples per second becuase I have my Rate set to 200, but what about 'samples to read?'
I have 'samples to read' set at 1, what does that mean?
That means you will read 1 sample each time the DAQ Assistant is called. A sample is added to the buffer every 5ms, so there will be likely be more data in the buffer. Therefore you might want to read more. For instance, if your loop takes 1 second to read, you should read at least 200 samples to keep the buffer cleared.
11-21-2018 01:03 AM
Hi jaguirre,
I set the rate to 10hz, then the sample to 1, thinking I'm sampling at 10hz
Upto here your thinking is correct…
and getting 1 sample per second and that is not the case.
Why do you think you are getting just 1S/s?
You defined a samplerate of 10S/s and so you will get 10S/s (by calling the DAQAssistent 10 times when you always read just one sample)!
No matter how long I run, it will only give 1 sample.
Why do you expect more samples when you only ask for 1 sample?
Unless I increase that number.
As soon as you request more samples you will get more samples per read request!
07-14-2019 09:31 AM