12-22-2014 09:54 AM
Hello All,
I have a simple C application where I read every ms the actual value of a Digital Input in a CDAQ NI - 9375 module.
My Rack is a cDAQ-9178 connected with USB conection to a Win 7 PC.
My application does in this order:
DAQmxCreatetask
DAQmxCreateDIChan (2 times one per channel)
DAQmxCfgSampClkTiming
DAQmxSetReadOffset
DAQmxSetReadRelativeTo
DAQmxStartTask
DAQmxReadDigitalLines
What happens is that when I read the Digital lines I get the erro "-200361 - On Board device memory overflow"
The parameters Im using are like bellow:
| Function | Parameters |
| DAQmxCreatetask | - |
| DAQmxCreateDIChan | |
| lineGrouping | DAQmx_Val_ChanPerLine |
| DAQmxCfgSampClkTiming | |
| rate | 10000 |
| activeEdge | DAQmx_Val_Rising |
| sampleMode | DAQmx_Val_ContSamps |
| SampsPerChanToAquire | 1 |
| DAQmxSetReadOffset | |
| 0 | |
| DAQmxSetReadRelativeTo | DAQmx_Val_MostRecentSamp |
| Start Task | - |
| DAQmxReadDigitalLines | |
| numSampsPerChan | 1 |
| timeout | 10 |
| fillMode | DAQmx_Val_GroupByScanNumber |
| readArray | @val[0] |
| arraySizeInSamps | 2 |
If I try to change the "offset" to a negative number (dosen't matter if -1, or -10000) I get another error: "-200277 - Invalid combination of position and offset"
What am I doing wrong?
Thanks
12-23-2014 06:18 AM
Hello aranteg,
did you also test the shipping examples ?
maybe you did not collect the data from your onboard memory that causes an overflow
or you are have to much records in a short time which is also causing an overflow on the card
Regards,
Stefan