User`s guide

7 Models with Multiple Sample Rates
7-4
Figure 7-1: Real-Time Program Execution
This chapter focuses on when and how the run-time interface executes your
model. See “Program Execution” on page 6-15 for a description of what happens
during model execution.
Collect Data
Real-Time Clock
semTake
semGive
Interrupt Service
Routine
Model Execution
Task
Context
Switch
Hardware
Interrupt
Collect Data
Save Context
Interrupt Service
Routine
Real-Time Clock
Hardware
Interrupt
Restore Context
Program execution using a real-time
Program execution using an
Execute Model
Execute Model
interrupt service routine (bare-
board, with no real-time operating
system). See the
grt target for an
example.
operating system primitives. See the
Tornado target for an example.