The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: serial communication problem
Replies: 6   Last Post: Jan 5, 2013 2:12 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 11/29/11
Re: serial communication problem
Posted: Nov 29, 2011 1:48 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I am trying to use the TCP/IP block as for communication , but I am facing this error.
Error evaluating registered method 'Outputs' of M-S-Function 'stcpiprb' in 'TCP/TCP//IP Receive'. Error using ==> stcpiprb>Outputs at 211
The specified amount of data was not returned within the Timeout period.
Please ensure that data is being sent to the specified port or specify a greater timeout value.
Can anyone suggest me what to do, to remove this error.

"Ankit Desai" <> wrote in message <io8614$cvm$>...
> "anil " <> wrote in message <inules$a5m$>...
> > hi everyone,
> >
> > i am creating serial communication in matlab.for communicating with micro controller
> > if i want to read some data from micro controller in matlab says warning error like
> >
> > Warning: The specified amount of data was not returned within the Timeout
> > period.
> >
> > what is that mean i increased timeout in matlab 0.05 to 0.1 but still its giving same waring
> > but its reading tha data
> > how to avoid this warning
> >
> > plz help me...
> >
> > thank you,

> Anil,
> As the error indicates you might be reading data when there is no data to read or the time specified in the timeout property is reached before any data was read.
> Having a Timeout of 0.1 sounds too small. Is there a reason why you have that value to 0.2 instead of the default value of 10?
> You should also check the BytesAvailable property of the object. That indicates the bytes you have available to read.
> Hope this helps.
> -Ankit

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.