Hi...
I want to change noise level after simulation started. How can I do that in
python script?
Surely, before simulation starts, I set noise by using following python
script (the same as the tutorial 11)
###############################
# Get noise
###############################
noise = open(noiseFile, "r")
lines = noise.readlines()
for line in lines:
str = line.strip()
if (str != ""):
val = int(str)
for i in range(0, nodes):
t.getNode(i).addNoiseTraceReading(val)
for i in range(0, nodes):
#print "Creating noise model for ",i;
t.getNode(i).createNoiseModel()
Thanks.
--
DaeHee Kim (Danny)
Department of Computer Science, State University of NewYork at Binghamton.
Cell Phone : 1-607-321-9574
Address : 13-A Andrea Dr, Vestal, NY, 13850
email-address : [EMAIL PROTECTED], [EMAIL PROTECTED]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help