Real-Time Workshop    

Rapid Prototyping System-Dependent Components

These components contain the program's main function, which controls program timing, creates tasks, installs interrupt handlers, enables data logging, and performs error checking.

The way in which application modules implement these operations depends on the type of computer. This means that, for example, the components used for a DOS-based program perform the same operations, but differ in method of implementation from components designed to run under Tornado on a VME target.

The main Function

The main function in a C program is the point where execution begins. In Real-Time Workshop application programs, the main function must perform certain operations. These operations can be grouped into three categories: initialization, model execution, and program termination.

Initialization

Model Execution

Program Termination

Rapid Prototyping Application Modules
for System Dependent Components

The application modules contained in the system dependent components generally include a main module such as rt_main.c containing the main entry point for C. There may also be additional application modules for such things as I/O support and timer handling.


  Rapid Prototyping Program Architecture Rapid Prototyping System-Independent Components