I have a very simple Simulink file. A pulse generator with a frequency of 60 Hz, amplitude of 1 and pulse width of 0.01. I have inserted a MATLAB function in the model that should enable sending a udp packet to an IP address when the pulse is high.
When I run a MATLAB script to send an UDP packet it works fine. When I run Simulink model with MATLAB function minus the UDP send command, it works fine. When I run any Simulink model it works fine.
Only and only when I run a Simulink model with a MATLAB function that has udp sending involved, it throws me a tantrum. Instead of MATLAB function, if I use the UDP send MATLAB function, I have the same error.
If I run the same model with the function on a different computer, it works fine.
It is only and only on one computer that it doesn't run.
The Function is: function y = fcn(u)
I do have a MinGW compiler in my system.
Already tried re-installing MATLAB.
Thanks in advance!!!