[etherlab-users] master application time seting

Bilko AS, Oguz Dilmac odilmac at bilko-automation.com
Tue Jul 24 15:51:46 CEST 2012


Can we just feed rt_get_real_time_ns() to the 
ecrt_master_application_time directly?
like: ecrt_master_application_time(master, rt_get_real_time_ns())

In the DC RTAI example, the time is first read byrt_get_real_time_ns() 
to a tv variable.
Then at each cycle, tv variable is incremented as the expected cycle period.
Then it is given to ecrt_master_application_time(master, 
EC_TIMEVAL2NANO(tv)) at each cycle.

Why is this approache is used? It seems problematic due to the jitter of 
the periodic task period.

Best regards,

Oguz Dilmac
ARGE Bolumu

Bilko AS, R&D Department
Perpa Ticaret Merkezi B Blok Kat 13 Nr. 2568
TR-34384 Okmeydani Istanbul Turkey
Tel : +90 212 220 07 40  Fax :   +90 212 210 47 01
e-mail : odilmac at bilko-automation.com
web site : http://www.bilko-automation.com

More information about the Etherlab-users mailing list