From: Tom on
Afternoon everyone,

I've built a Simulink model, which requires data from another computer to be sent across in real time. We're using tcp/ip to do this, and on Matlab's workspace can do this like so;

t = tcpip('192.168.54.111',600);
fopen(t);
fscanf(t)

However, how can I have this running inside Simulink? I have been looking at M-files, but would like to know if there are any idiots guides to get me started.

Thanks!
Tom