[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [certi-dev] Time synchonising

From: Gotthard, Petr
Subject: RE: [certi-dev] Time synchonising
Date: Mon, 13 Apr 2009 12:12:58 +0200


What manual have you read? There is a nice HLA Course at http://www.ecst.csuchico.edu/~hla/courses.html. See Module 1 Part 4.


Although there is no global clock the RTI assures (if time management is enabled) that the events are delivered in the simulation time order. In order to synchronize the time without sending any events/updates I have all federates both time regulating and time constrained. All my federates do the following:


timestep = 1.0

queryLBTS(localtime) // to check what should be the local time

if(localtime == positive infinity) localtime = 0 // fix if simulation is not yet running



enableTimeRegulation(localtime, timestep)


while(1) {






{ localtime = time; }



Best Regards,



From: address@hidden [mailto:address@hidden On Behalf Of ?????? ??????
Sent: Monday, April 13, 2009 11:04 AM
To: CERTI development discussions
Subject: [certi-dev] Time synchonising



as I understand, there is no common federation time. And each federate has its own time. I have two federates, one is regulating and other is constrained. I alter the time with getTickCount function. In some time I have two federates with different local time, and in case one federate sends an event to other, that other federate receives several minutes late, for example.
So there my question: how to synchronise them. I read the manual and didn't understand it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]