How to change periode of periode of time of periodic task

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
Faouzi
Newbie
Posts: 14
Joined: Tue Mar 31, 2015 6:34 pm

How to change periode of periode of time of periodic task

Post by Faouzi » Sun May 10, 2015 11:38 pm

I didn't know to change periodic time
I have tow chose and i can know how is responsible from periodic time
SetRelAlarm(AlarmTask1, 10,10000);
or
COUNTER Counter1 {
CPU_ID = "cpu0";
MINCYCLE = 2;
MAXALLOWEDVALUE = 0x10000000 ;
TICKSPERBASE = 1;
};
i need help
thank's
Faouzi

Faouzi
Newbie
Posts: 14
Joined: Tue Mar 31, 2015 6:34 pm

Re: How to change time periode of periodic task

Post by Faouzi » Mon May 11, 2015 5:18 pm

I didn't know to change time period
I have tow chose and i can know how is responsible from periodic time
SetRelAlarm(AlarmTask1, 10,10000);
or
COUNTER Counter1 {
CPU_ID = "cpu0";
MINCYCLE = 2;
MAXALLOWEDVALUE = 0x10000000 ;
TICKSPERBASE = 1;
};
i need help
thank's

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: How to change periode of periode of time of periodic ta

Post by paolo.gai » Mon May 11, 2015 5:42 pm

the period is specified in the SetRelAlarm. please read the ERIKA manual, the OSEK/VDX Standard, and check the "event" demo on how the SetRelAlarm is used. Also play with the parameters sent to the function. If I'm not wrong, MINCYCLE, MAXALLOWEDVALUE, and TICKSPERBASE are ignored in the Nios II version since it came before the OSEK/VDX certification.

pj

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: How to change periode of periode of time of periodic ta

Post by paolo.gai » Mon May 11, 2015 5:42 pm

the period is specified in the SetRelAlarm. please read the ERIKA manual, the OSEK/VDX Standard, and check the "event" demo on how the SetRelAlarm is used. Also play with the parameters sent to the function. If I'm not wrong, MINCYCLE, MAXALLOWEDVALUE, and TICKSPERBASE are ignored in the Nios II version since it came before the OSEK/VDX certification.

pj

Post Reply