Can I use "setNoise()" ? ... r = t.radio()
r.setNoise(1, -30, 5) ... I tried but, It seems to not work. Are there any way to see change of noise ? Please help me .... 2008/1/4, DAE HEE KIM <[EMAIL PROTECTED]>: > > I am using tinyos 2.0.2 in TOSSIM. > > 2008/1/4, DAE HEE KIM <[EMAIL PROTECTED]>: > > > > 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] > > > > > -- > 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] > -- 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
