Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200361

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

0 Kudos
Message 1 of 2
(3,927 Views)

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

0 Kudos
Message 2 of 2
(3,899 Views)