08-18-2015 07:12 AM
I've been working on a program in Labview which reads out voltage from my device. For that I use the the DAQmx Timing sub VI as shown in the picture.DAQmx connect.
I want do display the voltage in each iteration of the external while loop, therefore I use the continuous mode. However I am only able to read out as many values as the size of the buffer is (so 10 000 in for the piece of code I uploaded).
What is the correct way of working in the continuous mode?
I read out the values as shown in the picture DAQmx read.
08-18-2015 07:51 AM
08-18-2015 03:35 PM
You can set the buffer size to whatever you like--the easiest way would be to change the hard-coded 1000 number in your "DAQmx Connect" screenshot:
How Is the DAQmx Buffer Size Allocated for a Finite or Continuous Acquisition?
You'll want the buffer to be larger than the number of samples that you wish to read per loop iteration so you can account for any software delays in your loop. You'll need to use the N channels N Samples version of DAQmx Read to acquire multiple points at once.
Best Regards,