Thread Subject: serial.fwrite Timeout occured

Subject: serial.fwrite Timeout occured

From: Clemens

Date: 30 Oct, 2008 15:34:00

Message: 1 of 4

Hi

I have quite an annoying thing going on that I receive a timeout from
the serial interface after 10.000 succesful write to the same one.

??? Error using => serial.fwrite at 184
A timeout occured during the write operation

Anyone an idea how I can catch such a thingy that matlab doesnt crash?

many thanks,
Clemens

Subject: serial.fwrite Timeout occured

From: a programmer

Date: 30 Oct, 2008 16:58:01

Message: 2 of 4

Clemens <Clemens@gmx.at> wrote in message <geck2o$cof$1@aioe.org>...
> Hi
>
> I have quite an annoying thing going on that I receive a timeout from
> the serial interface after 10.000 succesful write to the same one.
>
> ??? Error using => serial.fwrite at 184
> A timeout occured during the write operation
>
> Anyone an idea how I can catch such a thingy that matlab doesnt crash?
>
> many thanks,
> Clemens

Clemens, is that r2007a? I had some serial timeout issues and was advised to upgrade to r2008a which did fix my problem (a read problem). What version are you using?

Subject: serial.fwrite Timeout occured

From: Clemens

Date: 30 Oct, 2008 17:16:32

Message: 3 of 4


>
> Clemens, is that r2007a? I had some serial timeout issues and was advised to upgrade to r2008a

  which did fix my problem (a read problem). What version are you using?

Yes, that is exactly my problem. What I have read is that the serial
command is executed anyway despite the error so I should just use a try
and catch block to ignore it for now!

Cheers

Subject: serial.fwrite Timeout occured

From: a programmer

Date: 30 Oct, 2008 17:32:01

Message: 4 of 4

Clemens <Clemi@hotmail.com> wrote in message <gecq5g$9ot$2@aioe.org>...
>
> >
> > Clemens, is that r2007a? I had some serial timeout issues and was advised to upgrade to r2008a
>
> which did fix my problem (a read problem). What version are you using?
>
> Yes, that is exactly my problem. What I have read is that the serial
> command is executed anyway despite the error so I should just use a try
> and catch block to ignore it for now!
>
> Cheers

If you can trap 'em its a good thing. If you still have any problems you can always just download a demo version (30-days) of r2008 and its instrument control toolbox to see if that fixes the problem.
Good luck!

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com