User`s guide
13 Incorporating Fortran Code into the xPC Ta rget™ Environment
This command requires that the application build folder be the current folder
(one level below the working folder,
xpc_fortran_test) . Becaus e of this, all
additional dependency designations must start with
..\.
Specify a ll Fortran object files if your mode l (S-Function blocks) depends
on m ore than one f ile. For this examp le, you specify the run-time lib r aries
only once.
Your next task is to build and run the xPC T arget application. See “Building
and Running the xPC Target Application” on page 13-16.
Building and Running the xPC Target Application
This topic assumes that you hav e prepared the model to build an xPC Target
application. See “Preparing the Model for the xPC Target Application Build”
on page 13-14.
Build and run the xPC Target application as usual. Be sure that you have
defined Microsoft Visual C/C++ as the xPC Target C compiler using.
After the build procedure succeeds, xPC Target automatically downloads the
application to the target PC. The Atmosphere model already contains an xPC
Target Scope block. This allows you to verify the behavior of the model. You
will be able to compare the signals displayed on the target screen with the
signals obtained earlier by the S imulink simulation run (see “Validating the
Fortran Code and Wrapper S-Function” on page 13-14).
13-16