MATLAB: Reading data into SIMULINK/MATLAB over UDP

Instrument Control ToolboxMATLABudp

I am trying to read data into my SIMULINK model using the UDP receive block in the Instrument Control Blockset (I have also tried the UDP block from the Signal Processing Blockset). Within my local network, I have a device that is broadcasting data over the network using UDP protocol. I believe that I have entered all the parameters in the UDP block correctly and yet MATLAB does not seem to be able to communicate with the device. I have also tried using the tmtool in Matlab with a similar result. I created an interface object for the device and tried receiving data while it was broadcasting but I still do not receive any data. I have performed the following checks: 1) I pinged the IP of the device from the computer where MATLAB and it responds fine 2) Using wireshark, I could see that the device was broadcasting the data.
If you go to the URL below, you can see a snapshot from Wireshark. It shows the destination IP (set up for broadcast), the source IP, and the port numbers.
Can someone help configure the SIMULINK blocks (or the tmtool in MATLAB) so that I can receive the data being broadcast?
Thank you very much for your help.
Juri

Best Answer

If your network configuration works fine and you are sure of it you should check your data configuration
The data type that you had choose is really significat when getting a correct output. Make sure that both data types match and also check the endian type chose (better try Littel Endian frist)
Related Question