User`s guide

Polling Mode ...................................... 12-5
Introducing Polling Mode
........................... 12-5
Setting the Polling Mode
........................... 12-7
Restrictions Introduced by Polling Mode
............... 12-10
Controlling the Target Application
................... 12-13
Polling Mode Performance
.......................... 12-14
Polling Mode and Multicore Processors
................ 12-15
Incorporating Fortran Code into the xPC T arget
Environment
13
Before You Start ................................... 13-2
Introduction
...................................... 13-2
Simulink Demos Folder
............................ 13-2
Prerequisites
..................................... 13-3
Steps to Incorporate Fortran in the Simulink Software for
xPC Target
.................................... 13-3
Step-by-Step Example of Fortran and xPC Target
.... 13-5
In T his Example
.................................. 13-5
Creating an xPC Target Atmosphere Model for F ortran
.. 13-5
Compiling Fortran Fi les
............................ 13-7
Creating a C-MEX Wrapper S-Function
............... 13-8
Compiling and Linking the W rapper S-Function
........ 13-12
Validating the Fortran Code and Wrapper S-Function
... 13-14
Preparing the Model for the xPC Target Application
Build
......................................... 13-14
Building and Running the xPC Target Application
...... 13-16
Vector CANape Support
14
Vector CANape .................................... 14-2
Introduction
...................................... 14-2
xPC Target and Vector CANape Limitations
........... 14-3
xi