Trying to Read Unsigned Characters via UDP Port
- From: "John Plenge" <plenge@xxxxxxxxxxxx>
- Date: Thu, 24 Aug 2006 11:38:29 -0400
Hello Everyone,
I am attempting to read in data from a UDP port using the Instrument
Control Toolbox?s ?fread? command and place it in an array of
unsigned character values. Using the command
?Data = fread (UDPPort, number of bytes, ?uchar?)?
reads in the data, but Matlab converts it to an array of doubles
instead of leaving it as characters. I?ve tried using the commands
?Data = fread(UDPPort, number of bytes, ?uchar=>uchar?)? and
?Data = fread (UDPPort, number of bytes, ?*uchar?)?
without success (They work fine for file I/O, don?t know why they?re
different for the Instrument Control Toolbox). Does anyone know how
to read in the data and store it as unsigned characters?
Thanks
John Plenge
.
- Prev by Date: Re: Bug in DATENUM?
- Next by Date: Re: How do I make the numbers on the axis larger?
- Previous by thread: How do I make the numbers on the axis larger?
- Next by thread: How to find the point with certain percentage (e.g. 80%) of numbers greater that it?
- Index(es):
Relevant Pages
|