DAQ Assistant Missing Data Between Iterations

Updated May 3, 2018

Reported In

Hardware

  • CompactDAQ Controller
  • USB-6000
  • USB-6001
  • USB-6002
  • USB-6003
  • USB-6210
  • USB-6211
  • USB-6212
  • USB-6215
  • USB-6216
  • USB-6218
  • USB-6225
  • USB-6255
  • USB-6281
  • USB-6289
  • USB-6341
  • USB-6343
  • USB-6351
  • USB-6353
  • USB-6356
  • USB-6361
  • USB-6363
  • USB-6366

Software

  • LabVIEW

Issue Details

I do measurements with a USB-6xxx. I am using the DAQ Assistant to read a number of samples and output them on a graph. This happens inside a loop to read samples continuously:


For each iteration I receive my data samples as expected. My problem is that between two iterations some data samples are lost. Why does this happen and how can I resolve it?

Solution

It is likely that the DAQ Assistant is set to Read N Samples. Set up like this it starts the acquisition task, reads N samples, and then stops the task. On the next iteration is starts the tasks again, reads another N samples, stops again. This way it misses the real world data occurring between the end of a loop iteration and the start of the next one.
 

If this is the case, change your Acquisition Mode to Continuous Samples. Now the Assistant keeps the acquisition task active and reads data continuously. On each iteration it will output the number of samples you specified. Your data will be continuous without missing samples.

WAS THIS ARTICLE HELPFUL?

Not Helpful