Aperiodic Tasks

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
Alberto_82
Newbie
Posts: 30
Joined: Wed Sep 03, 2008 2:15 pm

Aperiodic Tasks

Post by Alberto_82 » Wed Oct 29, 2008 10:00 am

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!!

chris
Newbie
Posts: 16
Joined: Mon Sep 29, 2008 1:27 pm

Re:Aperiodic Tasks

Post by chris » Wed Oct 29, 2008 10:12 am

Ok, it\'s easy.
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.

Alberto_82
Newbie
Posts: 30
Joined: Wed Sep 03, 2008 2:15 pm

Re:Aperiodic Tasks

Post by Alberto_82 » Wed Oct 29, 2008 10:36 am

Thank you very much!!! I didn\'t see it...

Bye,
/Alberto

Post Reply