Excuse me i forgot the python file
_________________________________________________________________
Avec Windows Live OneCare éliminez tous les virus de votre PC !
http://www.windowslive.fr/liveonecare/default.asp
from TOSSIM import *
import sys
f = open("log2.txt", "w")
t = Tossim([])
r= t.radio()
r.add(0, 1, -54.0)
r.add(1, 0, -53.0)
t.addChannel("emission", sys.stdout);
t.addChannel("reception", sys.stdout);
t.addChannel("emission", f);
t.addChannel("reception", f);
t.getNode(0).bootAtTime(1000);
t.getNode(1).bootAtTime(100001);
r.setNoise(1, -100.0, 5.0)
r.setNoise(0, -100.0, 5.0)
time = t.time()
while (time + 10000000000000 > t.time()):
t.runNextEvent()
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help