Wafa,

When you say the simulation takes less than X ms, how much less? Without more detailed information, it's difficult to say whether there is a problem, or you are interpreting the simulation time incorrectly.

Please check out this thread on the mailing list. Hopefully it should explain some things about the simulation time.

-Paul

wafa jaballah wrote:

Hello all,
Thanks for your help, but I really sometimes ask questions that maybe seem evident. I have an application that it sends packets during 12000000 ms and after that I want to stop sending and simulating and I get finally the different parameters. When I run the python file, I found that simulation takes less than 12000000ms. What is the problem? In my fileC.nc, I add the following code:
if(call(Timer.getNow()) > 12000000) {
simstop =1;
}
And so in Python file, I have added the following code: v6 = m1.getVariable("proC.simstop")

while (v6.getData() == 0):

t.runNextEvent();

Any suggestions are welcome.

Best Regards,


------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to