TCP/IP Connection with Smart Meter on xPC Target in Simulink Real Time 2016a and s-function
2 次查看(过去 30 天)
显示 更早的评论
Hello. I want to communicate with a Smart Meter in Realtime over TCP/IP. I use Matlab/Simulink R2016a and Simulink Real Time 2016a on the xPC Target. I wrote a s-function to generate a socket, send and receive datas over TCP. On my host PC in Simulink my model is running well and ich get the correct message from the Smart Meter. But I cannot build this s-function block in Simulink Real Time. I get the following error message:
The call to slrt_make_rtw_hook, during the exit hook generated the following error: Invalid Simulink object name: loader
The build process will terminate as a result. Caused by: Invalid Simulink object name: loader No block diagram 'loader' is loaded.
I attached my s-function. Are the headers (f.e. winsock.h) missing on the Target? How can I solve the problem?
Thank you for any support!
0 个评论
回答(1 个)
Suneesh
2017-2-28
TCP specific socket functions (for example CONNECT) were not avaialble in R2016a. We have TCP blocks in 17a - try the pre-release:
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!