Page 1 of 1
sample
Posted: Tue Mar 20, 2012 5:07 am
by trung05101
Hi all!
I receive data by TCP/IP. Data have 32 channels, sample rate 256. Bytes sent by server: 192 bytes. TCP samples/channel: 2. How many samples (bytes)/channel in a second I will receive?
Please help me.
Thanks.
Posted: Tue Mar 20, 2012 12:58 pm
by Coen
3 bytes/(sample*channel) * 256 samples/sec * 32 channels = 24,576 bytes/sec (in 128 TCP/IP packages of 192 Bytes/package)
Best regards, Coen (BioSemi)
Posted: Tue Mar 20, 2012 1:48 pm
by trung05101
Thanks Coen.
What mean is TCP sample/channel 2 ?
I think a pakage have 192 bytes, they have 6 byte/channel (2 sample).
But when I receive data, I only receive 96 bytes/ 1 time. Is this true?
Thanks.
Posted: Tue Mar 20, 2012 2:24 pm
by Coen
You should receive TCP packages with a size of 192 bytes. Add these packages, and convert it to a2D array with channels (rows) and samples (columns).
Best regards, Coen (BioSemi)
Posted: Tue Mar 20, 2012 2:49 pm
by trung05101
Thanks Coen.
Posted: Fri Apr 06, 2012 4:08 am
by trung05101
Hi Coen and everyone !
I received data from TCP/IP, but when I decrease sample rate, the time to collect package increase. How to explain it?
Thanks.