Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

analog acquisition+transfer data with UDP to Matlab

Hello everyone,
 
I am using the following:
 
Hardware: PCI NI6220
Software: Visual Studio 2003 C#
 
12 analog input channels
continuous sampling
sample rate = 10khz
samples per channel = 10000
default buffer size

I want to send all the 120000 samples with UDP to matlab.
I have a second application which receives the data, so I can check.
When I am sending small amounts of samples it works fine. But when I
tried to send all the 120000 samples the buffer gives an exception. The
exception says that old data, that hasn't been read yet, has been
overwritten(circular buffering).

In order to send data with UDP, I have to convert the two dimensional
double array into bytes. This takes some time. So I think this causes
the exception.

Is it possible to send the amount of 120000 samples with UDP while
continuously sampling at 10kHz? Has anyone any suggestions on how to
speed up the conversion? Is it possible to read integers from the DAQ?

Thanks in advance,
Souza.

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