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: 35
Registered: 8/21/08
Re: serial communication problem
Posted: Nov 29, 2011 11:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Rahul,

There are a couple of things you can try. The problem is the receive block is not receiving data within the specified timeout period. You can either:
1. Increase the timeout if you know that blocking and waiting more will help (I do not know the application here so cannot comment on that) OR
2. Use non-blocking mode instead of blocking mode. This does not error and returns immediately if no data is available. In this mode, the data on the Simulink line could be from a previous timestep and you can use the 'Status' port output from the block to determine if it is new data or not. 'Status' port of 1 indicates new data (0 - old data).

- Shankar

"rahul" wrote in message <jb1v77$1sl$>...
> HI
> 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.

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.