i use a Simulink block function for tcpip communication in which i wrote the code in description but when i run i have an error mesage saying in description
1 次查看(过去 30 天)
显示 更早的评论
Message error : The tcpip class does not support code generation Function y = fcn () t = tcpip('localhost', 7777, 'NetworkRole', 'client'); fopen(t); while true data = fscanf(t,'%c');G y = data; end
0 个评论
回答(1 个)
Dimitri MANKOV
2021-12-7
Hi Brian,
In case you are using Simulink Real-Time, I'd suggest using the TCP/IP blocks from the Simulink Real-Time library instead.
Hope this is helpful!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Development Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!