Rank: 20214 based on 0 downloads (last 30 days) and 0 files submitted
photo

Matt

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Matt
Updated File Comments Rating
13 Feb 2009 udpip Simulink Blocks for UDP/IP communication Author: Giampiero Campa

There is an error in the code of SimUdpServer3.c
In function mdlOutputs, the variable req_len is declared but never initialized or subsequently set to any value. Just before switch(info->connState), a line like:
req_len = sizeof(struct sockaddr_in);
needs to be added. Otherwise the recvfrom function will fail every time and you won't get any data.

Contact us at files@mathworks.com