Interface Simulink and WebSocket
显示 更早的评论
Hello everyone,
I am currently developing a web-app to send instruction to Simulink in Real-Time. As the TCP and UDP communication are not available from the browser (Chrome or Firefox) but only the WebSocket interface, i was wondering if is possible to interact with WebSocket (actually only reading) within Simulink with some equivalent of the UDP or TCP Receive block. Or should I implement the communciation with the S-Function feature ?
Any help is welcome, and so is any suggestion ! Thank you,
Igor
回答(1 个)
Luca Maria Castiglione
2018-4-25
0 个投票
Hej, I am faceing the same issue of you. The only solution I found until this moment is this code [1] but it seems not working properly on matlab R2018a [2].
Did you find anything else, meanwhile?
[1] https://github.com/jebej/MatlabWebSocket/ [2] https://github.com/jebej/MatlabWebSocket/issues/9
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!