User`s guide

Step-by-Step Example of Fortran and xPC Target
11-11
1 At the MATLAB window, type
fortran_atmos_xpc
This opens the Simulink model associated with the Atmosphere model. This
model includes the correct S-function block that is bound to
sfun_atmos.dll.
2 Select the Simulation menu Start option to simulate the model.
3 Examine the behavior of the Atmosphere model by looking at the signals
traced by the Scope block.
Your next task is to prepare the model to build an xPC Target application. See
“Preparing the Model for the xPC Target Application Build” on page 11-11.
Preparing the Model for the xPC Target Application
Build
Before you build the Atmosphere model for xPC Target, define the following
build dependencies:
The build procedure has access to
sfun_atmos.sub.obj for the link stage.
The build procedure has access to the Fortran run-time libraries (see
“Compiling and Linking the Wrapper S-Function” on page 11-9) for the link
stage.
This section assumes that you have validated the Fortran code and wrapper
S-function (see “Validating the Fortran Code and Wrapper S-Function” on
page 11-10).
1 At the MATLAB window, type
fortran_atmos_xpc
This opens the Simulink model associated with the Atmosphere model.
2 In the Simulink model, from the Simulation menu, click Configuration
Parameters
.
The Configuration Parameters dialog box appears.