Hi to all,
I\'m here again to find help...
This time I\'m looking for the aperiodic activation of a Task. Normally I use periodic tasks with an alarm for each of them, but now I have to use an aperiodic task; the problem is: how can I wake up the task? I\'ve been looking for some infos on erika and rt-druid docs, like ee_refman_1_4_4.pdf or rtdruid_refman_1_4_8.pdf, but I was not able to find out what I need...
I\'m sorry for my continuous posts here in the forum, but It\'s the only way I have to go on with my thesis!
Bye,
/Alberto
PS: I\'m working with a Flex board!!
Aperiodic Tasks
Moderator: paolo.gai
Re:Aperiodic Tasks
Ok, it\'s easy.
The primitive you need is
ActivateTask(task_id);
Here I post the documentation extracted from the Erika Enterprise RefMan.
Bye.
The primitive you need is
ActivateTask(task_id);
Here I post the documentation extracted from the Erika Enterprise RefMan.
2.6.1 ActivateTask
Synopsis
StatusType ActivateTask(TaskType TaskID);
Description
This primitive activates a task TaskID, putting it in the READY state, or in the RUNNINGstate if the scheduler finds that the activated task should become the running task. Once activated, the task will run for an instance, starting from its first instruction.For the BCC2 and ECC2 Conformance classes, pending activations can be tored if thetask has been configured with a number of activations greater than 1 within the OILconfiguration file. The function can be called from the Background task (typically, the main() function).
Parameters
• TaskID Task reference.
Return Values
• E_OK No error.
• E_OS_LIMIT To o many pending activations of TaskID.
• E_OS_ID (Extended) TaskID is invalid.
Conformance
BCC1, BCC2, ECC1, ECC2
Bye.