Home     Company     Products     Services     Community     Download     Store
    [Home arrow Community arrow Forum ]
Community
Community
Login Form





Lost Password?
No account yet? Register
Evidence Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Aperiodic Tasks (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Aperiodic Tasks
#253
Alberto_82 (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Gender: Male alberto_savioli@libero.it Location: Mantova Birthdate: 1982-12-09
Aperiodic Tasks 2 Months, 1 Week ago Karma: 1  
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!!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#255
chris (Moderator)
Moderator
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:Aperiodic Tasks 2 Months, 1 Week ago Karma: 0  
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);

De_script_ion

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.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/10/29 10:17 By chris.
  The administrator has disabled public write access.
#256
Alberto_82 (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Gender: Male alberto_savioli@libero.it Location: Mantova Birthdate: 1982-12-09
Re:Aperiodic Tasks 2 Months, 1 Week ago Karma: 1  
Thank you very much!!! I didn't see it...

Bye,
/Alberto
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Evidence S.r.l. - PIVA: 01638690501
Via Carducci 64/A - Ghezzano - Pisa - Italy
Privacy Policy