©
National Instruments Corporation
4-1
4
Generating Code for Real-Time
Operating Systems
This chapter describes the RTOS configuration file and functionality
provided for generating code for real-time operating systems.
Real-Time Operating System Configuration File
Code that is to execute under the control of a real-time operating system
(RTOS) usually has configuration elements specific to the real-time
environment that are not required for stand-alone code. While it is possible
to modify the template to configure aspects of the RTOS for a particular
model, it is more likely that each model will require different configuration
and will commonly undergo a tuning phase during the development
process. Instead of directly modifying the template, AutoCode includes the
concept of the RTOS configuration file.
The RTOS configuration file is a text file containing tables of information
related to the generated source code components of a model, like
subsystems and non-scheduled procedure SuperBlocks. Each table
contains configuration information about its respective component. Thus,
instead of modifying the template code to reconfigure RTOS information,
you can modify the values in the RTOS configuration file and then
regenerate code. The tables include common aspects related to generating
code for execution under a real-time operating system. The template
programmer is free to define the meaning of the table data in any way;
however, the table names and the template parameter names that contain the
data imply our semantic intent for the use of that data. In the remainder of
this section, we describe the RTOS configuration tables with a focus on our
intended usage of the data and template parameters.
Note
The RTOS file cannot be used with any of the
-pmap
,
-smap
,
-bmap
,
-imap
, or
-prio
options.