The TCP/IP function of Simulink
2 次查看(过去 30 天)
显示 更早的评论
I've create a tcp/ip connection between the '.m' file and Simulink. When I use 'sine wave' to send data though 'TCP/IP Client Send', it can get though successfully. However, when I use 'clock' to send data though 'TCP/IP Client Send', the it is wrong.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1739621/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1739621/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1739626/image.png)
1 个评论
回答(1 个)
Pramil
2024-7-25
编辑:Pramil
2024-7-25
Hi Jiaji,
If you can send “sine wave” then “clock” should also work assuming that your TCP/IP echo server is still running. You can refer the following documentation for the before mentioned.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1740506/image.png)
Also, here is a link to another documentation that states step by step process for setting up a TCP/IP connection.
Hope it helps.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!