Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Shankar
Posts:
32
Registered:
8/21/08
|
|
Re: serial communication problem
Posted:
Nov 29, 2011 11:10 AM
|
|
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$1@newscl01ah.mathworks.com>... > 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. >
|
|
|
|