01-08-2016 05:51 PM
Hi
I am trying to figure out how to measure the Sample Rate (S/s) at which I read from an analog input in LabVIEW FPGA. I know the sample rate is specified in the data sheet of the AI module, but I want to measure it in LabVIEW.
Any suggestions?
A screenshot of an example code would be greatly appreciated
Solved! Go to Solution.
01-09-2016 12:38 AM
01-09-2016 02:04 AM
Wouldn't that give me the loop time in stead?
I'm looking for a measurement of the number of samples obtained per second (S/s) from a given analog input channel
01-09-2016 03:36 AM
01-09-2016 06:02 AM
Hi GerdW
Thanks, I guess that is what I wanted to ask:
How can I count all samples that is output from the I/O node within a given period of time?
01-09-2016 11:29 AM - edited 01-09-2016 11:30 AM
Hey phg,
if you have a while loopand in this loop you output one sample per loop iteration via an I/O node. You cannot output two samples over the same I/O node in one iteration, it is always one!
So if your loop takes 1 second to execute you have an output sample rate of 1Hz. It is the same for input sampling. How long your loop takes to execute can be calculated as explained above.
Samplerate [S/s] = 1 / Loop time [s]
01-09-2016 01:20 PM
I finally understood, thanks all