User`s guide

Interrupt Handling
11-11
concept:
Figure 11-1: Using the Asynchronous Interrupt Block with Simulink’s Library Feature in the Rapid
Prototyping Process
By supporting two modes in the Asynchronous Interrupt block, the Real-Time
Workshop provides another tool for use in rapid prototyping. For more
information on rapid prototyping, see Chapter 1. To learn more about the
Library feature in Simulink, see Using Simulink.
Real-Time Workshop models normally run from a periodic interrupt. All blocks
in a model run at their desired rate by executing them in multiples of the timer
interrupt rate. Asynchronous blocks, on the other hand, execute based on other
interrupt(s) that may or may not be periodic.
The hardware that generates the interrupt is not configured by the
Asynchronous Interrupt block. Typically, the interrupt source is a VME I/O
board, which generates interrupts for specific events (e.g., end of A/D
conversion). The VME interrupt level and vector are set up in registers or by
using jumpers on the board. The
mdlStart routine of a user-written device
driver (S-function) can be used to set up the registers and enable interrupt
Library: changes made here
Plant Controller
Interrupt
Block
Real-Time Workshop Library
Plant
Controller
Controller
Interrupt
Block
Interrupt
Block
Model
(for simulation)
Model
(for code generation)
affect both models
(Sim. mode)
(RTW mode)