Chapter 4 Generating Code for Real-Time Operating Systems
AutoCode Reference 4-8 ni.com
Example 4-7 Processor IP Table Example
rtos.IPprsrmap =
Processor | IP Name
--------------------------------------------------------------------
1 | 127.0.0.1
2 | 133.65.32.111
Version TableTable 4-8 is a single element table consisting of the version number of
the format of the configuration tables. The table is named version.
Example4-8 shows a version table.
Example 4-8 Version Table Example
rtos.version =
1
Using the Configuration FileTwo mutually exclusive command options control the usage of the RTOS
configuration file, -rtos and -rtosf. The -rtos option uses a default
filename as the name of the configuration file to read and keep updated.
This filename is ac_rtos.cfg. Use -rtos to create the configuration file
the first time. Each time AutoCode is executed with the -rtos option,
the default configuration file is updated. This update contains all of the
configuration data that was used to generate code for the model and any
additional AutoCode components—that is, subsystem tasks, nonscheduled
SuperBlocks—in the model that did not have data in the configuration file.
The -rtosf option requires a filename to be specified as an argument.
When this option is used, AutoCode reads data from the file specified,
ignoring the default file. However, when data is updated, the new data is
stored in the file
filename
.new, where
filename
is the filename
specified along with the -rtosf option.
If you use an old configuration file with an updated model, AutoCode will
report differences and remove any unused configuration data when the
Table 4-8. Version Table Contents
Column
Name
Data
Type
Template Parameter
Containing the Data Default Value
N/A Integer N/A Latest file version