Real-Time Workshop    

Code Components

A Real-Time Workshop program containing code generated from a Simulink model consists of a number of code modules and data structures. These fall into two categories.

Application Components

Application components are those which are specific to a particular model; they implement the functions represented by the blocks in the model. Application components are not specific to the target. Application components include:

Run-Time Interface Components

A number of code modules and data structures, referred to collectively as the run-time interface, are responsible for managing and supporting the execution of the generated program. The run-time interface modules are not automatically generated. To develop a custom target, you must implement certain parts of the run-time interface. Table 14-1 summarizes the run-time interface components.

Table 14-1: Run-Time Interface Components
User Provides:
Real-Time Workshop Provides:
Customized main program
Generic main program
Timer interrupt handler to run model
Execution engine and integration solver (called by timer interrupt handler)
Other interrupt handlers
Example interrupt handlers (Asynchronous Interrupt Blocks)
Device drivers
Example device drivers
Data logging and signal monitoring user interface
Data logging, parameter tuning, signal monitoring, and external mode support

The components of the run-time interface vary, depending upon whether the target is an embedded system or a rapid prototyping environment.


  Components of a Custom Target Configuration User-Written Run-Time Interface Code