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.