DAQ Assistant Missing Data Between Iterations

Updated Apr 18, 2024

Reported In

Hardware

  • CompactDAQ Controller
  • Multifunction I/O Device

Software

  • LabVIEW

Issue Details

I am recording measurements from a multifunction I/O device. Currently, 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. This is shown in the image below:


For each iteration I receive my data samples as expected. My problem is that between iterations some data samples are lost and there is a gap in the waveform. 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.