Trying to Read Unsigned Characters via UDP Port



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
.



Relevant Pages

  • SyncToy versus Robocopy
    ... download) which synchronises two folders with an extraordinary degree of fine ... control, afforded by a huge array of command line options. ...
    (microsoft.public.windowsxp.photos)
  • Re: IsCollection?
    ... whether or not a Control is a collection (or belongs to an array of ocntrols)? ... Text1.Count will give me the total elements of this control ... Now add a third command button to the form but DON'T make it part of the control array. ... If TypeOf Command1 Is Object Then ...
    (microsoft.public.vb.general.discussion)
  • creating controls in runtime problem
    ... I know how to create a command button in runtime from an existing control ... array of command buttons, ... How do I create a new Frame + a new comand button, ...
    (microsoft.public.vb.general.discussion)
  • Re: Access 2007 Technical Questions
    ... you may want to bypass the validation rules such as user clicking on the ... on the form, all validation rules on the active control are processed, ... Enter Event doesn't even take place on the command button cause the ... If you used either of these, there would be no reason to check ...
    (microsoft.public.access.formscoding)
  • Re: Word 2007 -- How Alone Am I?
    ... One more question -- when I open the directory in Word (control O), ... QAT are assigned a Key Tip by the position of the command. ... click the Microsoft Office Button and then click New. ... and then click "Add to Quick Access Toolbar". ...
    (microsoft.public.office.misc)