Test and Measurement Forum

about buffer

Post your C and C++ discussions here

about buffer

Postby eletsinghua » Fri Aug 12, 2016 5:40 am

I am not very clear about buffer,
In SDK code, what is appbuffer,driverbuffer?
could you tell me more details about that?
eletsinghua
Newbie
 
Posts: 0
Joined: Fri Aug 12, 2016 2:26 am

Re: about buffer

Postby Martyn » Fri Aug 12, 2016 6:02 am

App Buffer is the buffer your application uses for the data, Driver Buffer is used by the driver, the callback needs to copy data from the Driver Buffer to the App Buffer so that no data is lost and your application can process the data whilst the driver is collecting more data.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: about buffer

Postby miaotian1990 » Sun Aug 14, 2016 11:58 pm

Hi Martyn,

So for each channel, there are two blocks of buffer. From example of streaming, one block is max value while the other block is min value. What does that mean?


Martyn wrote:App Buffer is the buffer your application uses for the data, Driver Buffer is used by the driver, the callback needs to copy data from the Driver Buffer to the App Buffer so that no data is lost and your application can process the data whilst the driver is collecting more data.
miaotian1990
Newbie
 
Posts: 0
Joined: Sun Aug 14, 2016 11:55 pm

Re: about buffer

Postby Martyn » Mon Aug 15, 2016 6:26 am

Those are for the aggregated data when using downsampling, see the Programmer's Guide for further information. Raw data will use the Max buffer.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests