Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

erroe -200279___initialize array

I have a problem concerning the error -200279 when I write a wavwform to binary file by doing sampling 100Khz for 40sec,
The buffer is 15Mhz .I write two channels.
What could I do?
How could the function initialize array to solve this problem?
  
0 Kudos
Message 1 of 2
(6,392 Views)
Hi paparas,
 
I assume the error message that you are getting is something along the lines of:
Attempted to read samples that are no longer available.
 
One thing to note while doing file output during a DAQmx Read is to make sure that you do the file open before your loop and before  the DAQmx Start Task.
This is explained in the following KnowledgeBase article (which is for LabVIEW, but the principle is the same):
KnowledgeBase 4EPF28F9: Why Do I Get Error -200279 When Writing Continuously Acquired Data to a File...
 
Its also possible that you might be reading too fast for your file write to keep up. 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.
Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 2 of 2
(6,362 Views)