User`s guide

3 Working with Real-Time Workshop
3-40
The example presented uses the generic real-time target, and does not
require any hardware other than the computer on which you run Simulink
and Real-Time Workshop. The generated executable in this example runs on
the host computer under a separate process from MATLAB and Simulink.
The procedures for building, running, and testing your programs are almost
identical in UNIX and PC environments. The discussion notes differences
where applicable.
For a more thorough description of external mode, including a discussion of
all the options available, see “Using the External Mode User Interface” in the
Real-Time Workshop User’s Guide documentation.
Part 1: Setting Up the Model
In this part of the tutorial, you create a simple model, ext_example, and a
directory called
ext_mode_example to store the model and the generated
executable:
1 Create the directory from the MATLAB command line by typing
mkdir ext_mode_example
2 Make ext_mode_example your working directory:
cd ext_mode_example
3 Create a model in Simulink with a Sine Wave block for the input signal,
two Gain blocks in parallel, and two Scope blocks. The model is shown
below. Be sure to label the Gain and Scope blocks as shown, so that
subsequent steps will be clear to you.