serial.mex problems

Hello,

I recently read an exchange from February about problems with
the serial port function, and I am having the same (or a very
similar problem). I am also using the Keyspan serial adapter for
a USB G4.

I have written a program in RealBasic that sends chr(0) to the
serial port. By monitoring the serial port activity, I know that this
works.

Yet, when I send char(0) using Matlab, I have no success.
Nothing is sent. Any number other than 0 works, but sending the
null character has no apparent result.

Any help in this regard would be appreciated!

-JK
Yesterday I found a file called "comm.mex" that appears to do the
trick. I found it at:

http://members-http-2.rwc1.sfba.home.net//tomldavis/

I have tried it out quickly and it seems to work okay. I haven't
tested it enough to know if it is suitible for mu very time-sensitive
experiments though.

Just thought I would pass it along.

-jordy

--- In psychtoolbox@y..., Matt Smear <msmear@p...> wrote:
>
>
> Allen,
>
>
> I'm the person who posted about problems with SERIAL back
in February. I recently
> figured out the same thing Jordy did: The keyspan adapter
won't send nulls when
> told to do so by SERIAL, but will when told to so by other
software. SERIAL can
> send other characters.
>
> Sorry for not posting this sooner.
>
> >
> >
> > The problem shouldn't have anything to do with using the
Keyspan adapter.
> >
> > I'll have a look at serial. It'll be few days, don't have a
Keyspan adapter,
> > will order today.
> >
> > I figure the graceful way to enable serial to handle nulls is to
have it accept
> > either a string or a row vector of doubles. When passed the
doubles, it sends
> > those out the port.
>
> Great!
>
> Thanks,
> Matt