Implementing User Tasks
User tasks originate from two sources—model subroutines that are defined as tasks, and activities that are defined as tasks in the ERP Profile editor.
Normally, Rational Statemate user tasks can include some synchronization calls, including the following:
The synchronization calls suspend task execution and call the Rational Statemate scheduler. The task resumes execution when a specific event occurs; execution is resumed from the point at which it was stopped.
Note the following when using tasks on dSPACE hardware:
● Do not use an endlesswhile
loop to wrap the task code.
● You should call thescheduler()
routine as the last command within the task. Do not call it anywhere else.
●