Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

reset buffer in VisualC++

Hello,

I must to reset the buffer during the acquisition because i do the continous acquisition and the software make an error (increase the buffer size, -200279), and i want to do my buffer empty.How i can do that?I search in NIDAQmx.h but i don't find anything for that.

Sorry if my english isn't good.

0 Kudos
Message 1 of 3
(6,415 Views)
Hi Jérémy,

First of all you should see this KB KnowledgeBase 4EPF28F9: Why Do I Get Error -200279 When Writing Continuously Acquired Data to a File.... It is for LabVIEW but for MStudio the principle is still the same.
 
It is explained that you might be reading too fast. In this case you can either slow down your acquisition, or write the datapoints to a temporary software buffer (like a queue) and write to the file in a separate thread.

 
Take a look at this link which explains how our buffers work and avoiding some errors that may be interesting for you.
 
For more information you will find similar threads that have been treated 

Moreover you will find some examples here :

C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Examples\DAQmx

 

 

Steve M.
0 Kudos
Message 2 of 3
(6,368 Views)
Hi Jérémy,

First of all you should see this KB KnowledgeBase 4EPF28F9: Why Do I Get Error -200279 When Writing Continuously Acquired Data to a File.... It is for LabVIEW but for MStudio the principle is still the same.
 
It is explained that you might be reading too fast. In this case you can either slow down your acquisition, or write the datapoints to a temporary software buffer (like a queue) and write to the file in a separate thread.

 
Take a look at this link which explains how our buffers work and avoiding some errors that may be interesting for you.
 
For more information you will find similar threads that have been treated 

Moreover you will find some examples here :

C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Examples\DAQmx

 

Regards,

Steve M.
0 Kudos
Message 3 of 3
(6,368 Views)