1. In blocking mode: Every time step, it blocks until the specified amount of data has been received. This is specified by the data size property. It seems like in your case that does not happen. If you specified the data size as [2 2], then the simulation step is blocked until 4 values are received. If the timeout time expires before we receive all of them, we error.
2. In non blocking mode: The block simulation step returns immediately if requested amount is not present. Hence this case does not error but probably does not return data as well.
To investigate your case, ensure that you are receiving the required data in a streaming fashion. One thing you can do is to try the same in MATLAB (by creating tcpip object, opening the connection and reading the data using fread).
"Deepak " <firstname.lastname@example.org> wrote in message <email@example.com>... > "rahul" wrote in message <firstname.lastname@example.org>... > > 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. > > Hello, > > I have the same problem as rahul. I am trying to establish communication via TCP/IP and I get following error: > "Error evaluating registered method 'Outputs' of M-S-Function 'stcpiprb' in 'TcpIpTest/TCP//IP Receive'. 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." > > I tried both increasing the timeout (up to 20 sec) and the non-blocking mode. The error prevails while increasing timeout. The non blocking mode does not actually establish the communication but it shows no error. > > Please help me. > > Thank you.