User`s guide

4 External Mode
4-4
Getting Started with External Mode Using grt
This section provides a step-by-step set of instructions for getting started with
external mode. Since the example presented is shown using the generic
real-time (
grt) target, you don’t need any hardware other than your basic
computer setup to get the example running. This process, running the
generated executable on the host computer, is known as self-targeting.Ifyou
are running UNIX instead of Windows 95, Windows 98, or Windows NT, the
steps presented here are the same, except that you should open an xterm for
your target instead of a DOS command prompt.
For a more thorough description of external mode, including a discussion of all
the options available to it, see “External Mode GUI” on page 4-10.
Setting Up the External Mode Host Environment
First, 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 should look like
this.
Setting up external mode for this model involves the following steps:
1 Set the simulation to External under the Simulation menu.
2 Open the Simulation Parameters dialog box. On the Solver page, set the
Solver Options Type to Fixed-step,andFixed-step Size to 0.01.Leave