about buffer

Post your C and C++ discussions here
Post Reply
eletsinghua
Newbie
Posts: 0
Joined: Fri Aug 12, 2016 2:26 am

about buffer

Post by 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?

Martyn
Site Admin
Site Admin
Posts: 3226
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: about buffer

Post by 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 Support Manager

miaotian1990
Newbie
Posts: 0
Joined: Sun Aug 14, 2016 11:55 pm

Re: about buffer

Post by 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.

Martyn
Site Admin
Site Admin
Posts: 3226
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: about buffer

Post by 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 Support Manager

Post Reply