Real-Time Workshop Embedded Coder | ![]() ![]() |
VxWorks Example Main Program Execution
Overview
The Real-Time Workshop Embedded Coder VxWorks example main program is provided as a template for the deployment of generated code in a real-time operating system (RTOS) environment. We strongly recommend that you read the preceding sections of this chapter as a prerequisite to working with the VxWorks example main program. An understanding of the Real-Time Workshop Embedded Coder scheduling and tasking concepts and algorithms, described in Stand-Alone Program Execution, is essential to understanding how generated code is adapted to an RTOS.
In addition, an understanding of how tasks are managed under VxWorks is required. See your VxWorks documentation.
To generate a VXWorks example program:
ERT code generation options (3)
category of the Real-Time Workshop tab of the Simulation Parameters dialog box, select the Generate an example main program option (this option is on by default).
VxWorksExample
from this menu.
Some modifications to the generated code are required; comments in the generated code identify the required modifications.
![]() | rt_OneStep | Task Management | ![]() |