User`s guide
4 External Mode
4-22
Using the TCP Implementation
This section describes how to use the TCP-based client/server implementation
provided with the Real-Time Workshop. In order to use Simulink external
mode, you must:
• Specify the name of the external interface MEX-file in the
External Target
Interface
dialog box.
• Configure the template makefile so that it links the proper source files for
the TCP server code and defines the necessary compiler flags when building
the generated code.
• Build the external program.
• Run the external program.
• Set Simulink to external mode and start the simulation.
This figure shows the structure of the TCP-based implementation: