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

Reply via email to