Chapter 4 Generating Code for Real-Time Operating Systems
© National Instruments Corporation 4-3 AutoCode Reference
Table Naming ConventionTables are given a name to identify the contents of the data contained
therein. Table names are specified in the same form as Xmath variables,
partition.name. RTOS does not look at the partition specifier.
Notice that the name specifier is case sensitive.
Table Column ContentsThe contents of a column within a table has a specific data type—for
example, an integer or floating point or string value. For each row in a table,
all columns must contain data of the appropriate type. If a table contains no
rows, it will not appear in the configuration file.
Table OrderingsThe tables can appear in any order in the file except the Version Table,
which must be the first table. Also, a table can appear only once in the file.
If the table appears more than once, the data in the first table is used.
File CommentsA line starting with the pound character # denotes the line is a comment.
RTOS Configuration File ContentsThe RTOS configuration file consists of named tables of data. Some tables
are single element, while others have one or more columns of data. The
table formats are based on the way Xmath outputs PDM matrix information
into a text file.
Processors TableTable 4-1 is a single element table consisting of the number of processors
to target for the generated code. The table is named processors.
Example 4-1 shows an example of a processors table.
Table 4-1. Processors Table Contents
Column
Name
Data
Type
Template Parameter
Containing the Data Default Value
N/A Integer nprocessors_i Value used with -np option or 1