Skip to contentSkip to conversation

rt_task_set_periodic

Xenomai Alex Martin 2 participants 2 messages Nov 21, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

I want to adjust the period set for rt_task_set_periodic.

It is required to adjust the period value at run time when task is running. I want to adjust the task period to external clock.

period will about 5 milli seconds.( I set it to 5e6 ). There will be always difference between two clocks. I want to adjust dynamically during run time period of the xenomai task to match external clock.

Which function can be used.

Best regards,

Alex.

#1 lore raw
Quoted 11 lines · Alex Martin

Hi,

I want to adjust the period set for rt_task_set_periodic.

It is required to adjust the period value at run time when task is running. I want to adjust the task period to external clock.

period will about 5 milli seconds.( I set it to 5e6 ). There will be always difference between two clocks. I want to adjust dynamically during run time period of the xenomai task to match external clock.

Which function can be used.

Simply issue rt_task_set_periodic again, with the adjusted period.

Quoted 9 lines

Best regards,

Alex.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Signature · 1 line
Philippe.