User`s guide
Features
1-5
• Scheduler — The timer interrupt clocks a simple scheduler that runs the
executable. The number of tasks is equal to the number of sampling periods
in the model with multitasking mode. With single-tasking mode, there is
only one task. The maximum number of tasks is 32, and faster tasks have
higher priorities than slower tasks. For example, a faster task can interrupt
a slower task.
During execution, the executable stores data in buffers. Later, the data in
these buffers is retrieved by the Scope block. The scheduling, data storing,
data transferring, and running the executable all run at CPU ring zero.
•
Communication with hardware — The kernel interfaces and
communicates with I/O hardware using I/O driver blocks, and it checks for
proper installation of the I/O board. If the board has been properly installed,
the drivers allow your real-time application to run.
The Analog Input, Analog Output, Digital Input, Digital Output, Counter
Input, and Encoder Input blocks call the drivers for input and output. You
can choose to have a driver block use values equal to voltage, normalize
values from 0 to +1, normalize values from -1 to +1, or use the raw integer
values from the A/D or D/A conversion press. Drivers also run at CPU ring
zero.
•
Simulink external mode — Communication between Simulink and the
real-time application is through the Simulink external mode interface
module. This module talks directly to the real-time kernel, and is used to
start the real-time application, change parameters, and retrieve scope data.
•
Built-in C compiler — Real-Time Windows Target applications are
compiled with the Open Watcom C/C++ compiler. For your convenience, this
compiler is shipped with Real-Time Windows Target. No third-party
compilers are necessary.
Real-Time Application
The real-time application runs in real time on your PC computer and has the
following characteristics:
•
Compiled code — Created from the generated C code using the Open
Watcom C/C++ compiler.
•
Relation to your Simulink model — The executable contains a binary form
of all Simulink model components, connections between blocks, time
dependencies, and variables in the Simulink blocks.