Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Overflow of the device onboard memory: -200795

Hello,

I am trying to write an array of data to an AO line. I get an overflow of the device onboard memory, error # -200795.
Following is the code that I am using:

// Configure DAC Clock and Trigger
DAQmxErrChk (DAQmxCfgSampClkTiming (DAC_taskHandle, "", 1000, DAQmx_Val_Falling, DAQmx_Val_ContSamps,8192));
DAQmxErrChk (DAQmxCfgDigEdgeStartTrig (DAC_taskHandle, "/Dev2/PFI1",DAQmx_Val_Falling));

DAQmxErrChk (DAQmxStartTask (DAC_taskHandle));
// Copy the outputarrayy data into the DAC_Data to be written: array size: 8192
Copy1D (outputarrayy, INDENTNUMDACPTS, DAC_Data);

// Write to the AO channel through DAC0 lines
DAQmxErrChk (DAQmxWriteAnalogF64 (DAC_taskHandle,8192, 0, 10.0, DAQmx_Val_GroupByChannel, DAC_Data, &written, NULL));

I noticed that in the DAQmxWriteAnalogF64 function, if I use number of samples per channel as 8190, I did not receive the error. Could somebody help me out with this please. Any suggestions would be helpful.

reards,

Dwivedi
Any suggestions would be helpful.
0 Kudos
Message 1 of 2
(2,811 Views)
Hi Dwivedi,

Looks like you're starting to make some headway with your AI/AO application.  Unfortunately it appears that you're running into a few errors that are slowing you down.  I did a quick search for what this error is that you're getting:

From the Explain Error Help in LabVIEW:
"Error -200795 occurred at an unidentified location
Possible reason(s):
There was an overflow of the device onboard memory while performing a hardware timed non-buffered generation.
Write only one sample per channel between two consecutive sample clocks to avoid this condition."

Have you tried running the example for this operation found here:
C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog Out\Generate Voltage\Mult Volt Updates-Int Clk-Dig Start ?

The only thing that I can really see is that you may want to change the DAQmx_Val_ContSamps to DAQmx_Val_FiniteSamps if you are doing a finite operation. 

See if you can get the examples to work, and then work from there to see what the differences are.

Regards,
0 Kudos
Message 2 of 2
(2,798 Views)