User`s guide

Using the TCP Implementation
4-25
You must specify these options in order. For example, if you want to specify the
verbosity level (the second argument), then you must also specify the target
host name (the first argument).
Note that you can also specify verbosity level and port number as options in the
external program. See “Running the External Program” on page 4-25 for more
information.
External Mode Support
Thegenericreal-timeandTornadotargetshavesupportforexternalmode.To
enable external mode, check
External mode in the Code Generation Options
dialog box. You can open this dialog box by clicking Options on the Real-Time
Workshop page of the
Simulation Parameters dialog box.
Building the External Program
Click the Build button to build the program. You can use the MAT-file data
logging options to observe the effects of changing parameters in a real-time
program. Tornado applications can also use StethoScope with signal
monitoring to observe the effect of changing parameters.
See Chapter 2 for an example of how to build the program and save data that
you can display with M
ATLAB. See Chapter 8 for information on building
programs for Tornado and using StethoScope.
Running the External Program
The external program must be running before you can use Simulink in external
mode.
In the UNIX environment, if you start the external program from M
ATLAB,you
must run it in the background so that you can still access Simulink. For
example, the command
!model &
runs the executable file model from MATLAB by spawning another process to
run it.