tcpip simulink block as server?
显示 更早的评论
I have an app that sends/receives data over tcp with localhost, but only as a client. Thus, the following works:
raw_data= '1234567890qwertyuiop'; t=tcpip('127.0.0.1', 9876, 'NetworkRole', 'server'); fopen(t); fwrite(t, raw_data); fclose(t);
However, the simulink blocks in the instrument control toolbox will not work to send/receive data, perhaps because they are not configured to act as server. Is there a way to modify these blocks to make this work? Thanks.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 System Configuration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!