Chapter 4
Generating Code for Real-Time Operating Systems
4-4
ni.com
Example 4-1
Processors Table Example
rtos.processors =
2
Scheduler Priority Table
Table 4-2 is a single element table consisting of the priority assigned to the
scheduler task. The table is named: scheduler_priority. Example 4-2 shows
an example of a scheduler priority table.
Example 4-2
Scheduler Priority Table Example
rtos.scheduler_priority =
254
Subsystem Table
Table 4-3 lists the configuration information for all subsystem tasks of the
model. Each row is identified with the subsystem task number. The table is
named
subsys
. Example 4-3 shows a subsystem table.
Table 4-2.
Scheduler Priority Table Contents
Column
Name
Data
Type
Template Parameter
Containing the Data
Default Value
N/A
Integer
scheduler_priority_i
nin2
Table 4-3.
Subsystem Table Contents
Column
Name
Data
Type
Template Parameter
Containing the Data
Default Value
Priority
Integer
sspriority_li[]
scheduler_priority - nintrprocs - n.
Stack Size
Integer
ssstack_size_li[]
1024
Processor
Integer
ssprocessor_map_li[]
Round-robin
(a sequential, cyclical allocation of resources
to the subsystems)
Mode Flags
String
ssmode_flags_ls[]
None