User`s guide

13 Incorporating Fortran Code into the xPC Ta rget™ Environment
Before You Start
In this section...
“Introduction” on page 13-2
“Simulink D emos Folder” on page 13 -2
“Prerequisites” on page 13-3
“Steps to Incorporate Fortran in the Simulink Software for xPC Target”
on page 13-3
Introduction
The xPC Target product supports the incorporation of Fortran code into
Simulink models. This chapter describes how to incorporate Fortran into a
Simulink model for the xPC Target software.
The xPC Target product supports Fortran in Simulink models with
S-functions. (See “Creating Fortran S-Functions” in the Developing
S-Functions guide for a description of how to incorporate Fortran code into
Simulink models.) In that chapter, the sections “Creating Level-2 Fortran
S-Functions” and “Po rting L egacy Code” are m os t applicable to the xPC
Target softwa re.
Simulink Demos Folder
The Simulink demos folder contains a tutorial and description on how to
incorporate Fortran code into a Simulink model using S-functions. To access
the tutorial and description,
1 In the MATLAB Command Window, type
demos
A list of MATLAB products appears on the left side of the MATLAB Online
Help window.
2 From the left side of the window, select Simulink>Demos>Modeling
Features.
13-2