User`s guide

Step-by-Step Example of Fortran and xPC Target™
8 Click Apply,thenOK.
9 Double-click the Sine Wave block.
10 For the Sample time parameter, enter 0.05.
11 Click OK.
12 From the File menu, click Save as. Browse to your current working folder,
for example,
xpc_fortran_test. Enter a filename. For example, ente r
fortran_atmos_xpc and then click Save.
Your next task is to compile Fortran code. S ee “Compilin g Fortran Files”
on page 13-7.
Compiling Fortran Files
1 In the MA TLAB Command Window, copy the file sfun_atmos_sub.F into
your Fortran working folder, for example,
xpc_fortran_test. Thisisthe
sample Fortran code that implements a subroutine for the Atmosphere
model.
2 From Fortran_co mpiler_dir\IA32\Lib, copy the following files to the
working folder:
libifcore.lib
libifcor emd.lib
ifconsol .lib
libifpor tmd.lib
libifpor t.lib
libmmd.l ib
libm.lib
libirc.l ib
libmmt.l ib
libifcor emt.lib
13-7