TCP/IP send method in Matlab as in Simulink
1 view (last 30 days)
Show older comments
Hello there, I have been using my python code to communicate with our simulink model and are now ready to communicate with a experimental setup which have data flows through matlab. My problem is that i do not know how Simulink is sending data which i could read.

I would like Matlab to send data in the same way as in simulink. I have tried to look under the mask but i cannot read anything from this.
I have tried to do it like this but it is not the same as in Simulink:
sendPort = tcpip('localhost', 50001); % Receiver port on python
fopen(sendPort);
send.ByteOrder = 'littleEndian';
fwrite(sendPort, [4.4, 4.5, 4.6, 4.7, 4.8, 4.9]);
Hope there is someone who can help me!
Best regards Søren Koch
0 Comments
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!