User`s guide
Idle Task
For example, en t erin g [2,3, 1] in this field indicates that there
arethreefunctionstobeexecuted,andthatthethirdfunction
is executed first, the first function is executed second, and the
second function is executed third. After all functions are executed,
the Idle Task block cycles back and repeats the execution of the
functions in the same order.
Preemption flags
Higher-priority interrupts can preempt interrupts that have lower
priority. To allow you to control preemption, use the preemption
flags to specify whether an interrupt can b e preempted.
Entering
1 indicates that the in terrupt can be preempted.
Entering
0 indicates the interrupt cannot be preempted. When
Task numbers contains more than one task, you can assign
different preemption flags to each task by entering a vector of flag
values, co rresponding to the order of the tas ks in Task numbers.
If Task numbers contains more than one task, and you enter
only one flag value here, th a t status a pp lies to all tasks.
In the default settings
[0 1], the task with priority 1 in Task
numbers is not preemptible, and the priority
2 task can be
preempted.
Enable simulation input
When you select this o ption, Simulink software adds an input
port to the Idle Task block. Thisportisusedinsimulation
only. Connect one or more simulated interrupt sources to the
simulation input.
Note Select this check box to tes t asynchronous interrupt processing
behavior in Simulink software.
9-19