Re: reading network data
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Mon, 26 Nov 2007 00:02:19 +0000
Ender <noreply@xxxxxxxxxxxx> writes:
On 2007-11-25 11:35:23 -0600, Ender <noreply@xxxxxxxxxxxx> said:
Why don't you post some code, of the program that generates the packets.
The program that generates this is from matlab
u = udp('10.7.10.2',4012);
fopen(u)
fwrite(u,arr,'uint16')
I don't know anything about Mathworks, but a quick look suggests that
that is a call to write (binary) integer data, not floating point.
I general, if you have control over both sides, you should choose the
encoding to be as universal as possible -- you never know what odd
hardware might end up running your code. I'd send the data as ASCII
characters, essentially printing and reading the numbers rather than
sing any binary format.
--
Ben.
.
- References:
- Re: reading network data
- From: Ben Bacarisse
- Re: reading network data
- From: Alf P. Steinbach
- Re: reading network data
- Prev by Date: High Performance Computing by Dowd and Severance
- Next by Date: Re: Network timeout estimation
- Previous by thread: Re: reading network data
- Next by thread: Re: reading network data
- Index(es):
Relevant Pages
|