Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

ReadMultiSample performance

I was wondering what can impact the time it takes for the AnalogMultiChannelReader::ReadMultiSample to return?  I have an application and I notice that if I store too much data in memory (about 400MB) that the ReadMultiSample return time stops being consistent.  If I graph the data versus time I will start to see that about every 1 second the ReadMultiSample will take about 7 times longer to return then the following 7 calls of the function take less time (I'm guessing to empty the buffer).  Once I dispose of the stored data the return times start being consistent again.  I am using .net, windows 10, NI-9239 at 50KHz, 1000 samples at a time.

0 Kudos
Message 1 of 2
(1,747 Views)

Hello Nanovea156,

 

I think it may related to memory.

Have you use Memory-Optimized Analog Reads?

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 2 of 2
(1,576 Views)