sample

Post Reply
trung05101
Posts: 17
Joined: Tue Feb 21, 2012 9:26 am
Location: viet nam

sample

Post 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.

Coen
Site Admin
Posts: 1124
Joined: Fri Mar 26, 2004 7:00 pm
Location: Amsterdam, Netherlands
Contact:

Post 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)

trung05101
Posts: 17
Joined: Tue Feb 21, 2012 9:26 am
Location: viet nam

Post 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.

Coen
Site Admin
Posts: 1124
Joined: Fri Mar 26, 2004 7:00 pm
Location: Amsterdam, Netherlands
Contact:

Post 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)

trung05101
Posts: 17
Joined: Tue Feb 21, 2012 9:26 am
Location: viet nam

Post by trung05101 »

Thanks Coen.

trung05101
Posts: 17
Joined: Tue Feb 21, 2012 9:26 am
Location: viet nam

Post 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.

Post Reply