Hi,
as I am trying to establish a TCP/IP communication in the Desktop Real-Time External Mode [SLDRT], I am struggling with the Packet Input and Packet Output blocks that were originally designed for TCP/IP communication in that mode. Since I had some TCP/IP connection working in Desktop Real-Time Normal mode when using TCP blocks (TCP Client, TCP Send and TCP Receive – the blocks are originally from the the Real-Time library [SLRT]) I wanted to implement these blocks in Desktop Real-Time External.
Since both, Desktop Real-Time External and Real-Time are generating C code I thought that I could also use the TCP blocks in Desktop-Real-Time External. But when I trieed to build a simple Simulink model (see image below) I receive the following error message:
"The pre-compiled libraries libslrealtime_libsrc_ip.a_sldrt.lib are missing from the TargetPreCompLibLocation C:\Program Files\MATLAB\R2021a\toolbox\sldrt\lib\win64."
When trying to use the "fix" button, matlab starts building and some other operations and then simply terminates with closing Simulink and the error is still not fixed when restarting Semulink and trying to build it again.
The TCP blocks are part of the official Real-Time [SLRT] library as can be seen here: https://de.mathworks.com/help/slrealtime/referencelist.html?type=block but are further defined as part of the Simulink Real-Time / IP library as can be seen here: https://de.mathworks.com/help/slrealtime/io_ref/tcpclient.html.
It looks like that the library for Desktop Real-Time External [SLDRT] is missing the libslrealtime_libsrc_ip containing information about the TCP blocks, which should be found inside of the Real-Time [SLRT] library if I am right here?
Problems:
- In the directory of the error message, I can not find a_sldrt.lib All I have there is: ex_sldrt.lib, mc_sldrt.lib ne_sldrt.lib, pm_math_sldrt.lib, pm_sldrt.lib, sldrtlib.lib, sm_sldrt.lib, sm_ssci_sldrt.lib, ssc_core_sldrt.lib and ssc_sli_sldrt.lib
- In the directory of the Real-Time toolbox (C:\Program Files\MATLAB\R2021a\toolbox\slrealtime\simulink\blocks\dist\lib) I found libslrealtime_libsrc_ip_slrt_x64.a
Question:
How can I extend the SLDRT library by the libslrealtime_libsrc_ip of the SLRT library and will this even fix my problem?
Thank you in advance.
Simple Simulink model to be built for Real-Time External
Best Answer