Download Real-Time Workshop

Transcript
Interrupt Handling Blocks
When you design your application, consider when timer and signal input
values should be taken for the downstream function call subsystem that is
connected to the Task block. By default (Synchronize the data transfer of
this task with the caller task is deselected), the time and input data are
read when the task is activated by VxWorks. For this case, the data (inputs
and time) are said to be synchronized to the task itself.
When Synchronize the data transfer of this task with the caller task is
selected, and the Task block is driven by an Async Interrupt block, the time
and input data are read when the interrupt occurs (that is, within the ISR).
For this case, data is said to be synchronized to the caller of the Task block.
Task Synchronization Block Example
This section examines the use of the Task Synchronization block in the
rtwdemo_async model. The block diagram is shown below. Before reading the
discussion, open the demo model and double-click the Generate Code button.
You can then examine the generated code in the HTML code generation report
produced by the demo.
16-19