User`s guide

Step-by-Step Example of Fortran and xPC Target
11-13
Building and Running the xPC Target Application
This section assumes that you have prepared the model to build an xPC Target
application. See “Preparing the Model for the xPC Target Application Build” on
page 11-11.
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
xpcexplr.
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 Simulink simulation run (see “Validating the Fortran
Code and Wrapper S-Function” on page 11-10).