Real-Time Workshop    

Rapid Prototyping Program Framework

The code modules generated from a a Simulink model -- model.c, model.h, and other files -- implement the model's system equations, contain block parameters, and perform initialization.

The Real-Time Workshop program framework provides the additional source code necessary to build the model code into a complete, stand-alone program. The program framework consists of application modules (files containing source code to implement required functions) designed for a number of different programming environments.

The automatic program builder ensures the program is created with the proper modules once you have configured your template makefile. The application modules and the code generated for a Simulink model are implemented using a common API. This API defines a data structure (called a real-time model, sometimes abbreviated as rtM) that encapsulates all data for your model.

This API is similar to that of S-functions, with one major exception: the API assumes that there is only one instance of the model, whereas S-functions can have multiple instances. The function prototypes also differ from S-functions.


  Embedded Model Functions Rapid Prototyping Program Architecture