Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Where to Find how many samples Read

Solved!
Go to solution

How we can check "How many samples" Read.

 

Also appreciate if you can give a formula to calculate the Number of Samples.

I am preparing for CLAD and few questions are on "No of Samples"

0 Kudos
Message 1 of 2
(2,425 Views)
Solution
Accepted by M_Atif

The number of samples read is the sampling rate (samples / second) multiplied by the duration that you are reading (seconds). 

 

It is usually unnecessary to think of it in terms of time though, since you specify the number of samples to read explicitly. If you set up a continuous task, then every time you call DAQmx read, you will read the specified number of samples at that VI input until you manually stop the task. 

 

For example, if you configure the timing of the task to acquire samples at a rate of 10,000 samples per second and configure the DAQmx Read VI to read 1,000 samples in a while loop that runs 5 times before stopping, you will have read 5,000 samples. This is true of any sampling rate - but a faster/higher sampling rate will cause the 5,000 samples to be acquired more quickly. 

Nathan Murphy
0 Kudos
Message 2 of 2
(2,404 Views)