Certification

cancel
Showing results for 
Search instead for 
Did you mean: 

When use DAQmx Configure Input Buffer.vi as in Q6 HW CLAD Prep Guide appears

Solved!
Go to solution

Hello,

 

Not clear when to use DAQmx Configure Input Buffer.vi as appears in Q6 Hardware Section in CLAD Prep Guide LabVIEW 2017. I can understand that you need a buffer when you acquire continuously but there are others DAQmx VIs in the guide that acquire also continuously without this DAQmx VI Buffer.

 

Thank You!

0 Kudos
Message 1 of 4
(4,020 Views)
Solution
Accepted by topic author jesLVbcn

The important thing here is that you have two tasks running in the same loop.  In order for both of them to never error due to a buffer overrun, the reads need to capture the same amount of time's worth of data.

 

So looking at the bottom task we have a sample rate of 10kS/s and we are reading 10k samples with each iteration of the loop.  Do the math and we get 1 second of data (10kS / 10kS/s = 1s).

 

Now we look at the top task.  It has a sample rate of 10S/s.  Multiply that by the 1s of data that we need (as calculated from the bottom task) and we find we need to read 10 samples per iteration.  Giving the answer of A.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 4
(4,005 Views)

Thanks for your answer. I wonder if this VI will do the same task and have the same performance without the DAQmx Configure Input Buffer. 

 

It works using LabVIEW and running the VI without the buffer.

 

0 Kudos
Message 3 of 4
(4,002 Views)

@jesLVbcn wrote:

I wonder if this VI will do the same task and have the same performance without the DAQmx Configure Input Buffer. 


Well, I think that the buffer sizes are actually being overwritten by the DAQmx Timing.vi.  I would have to do some experiments to verify that.  Regardless, the important thing is to keep up with your data so that the buffer can't fill up.  If you "fix" an error by increasing the buffer, it is very likely not a real fix.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(3,987 Views)