[Tinyos-help] Re: How can I change noise level after simulation
started ?
DAE HEE KIM
dahkim77 at gmail.com
Fri Jan 4 10:47:06 PST 2008
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 <dahkim77 at gmail.com>:
>
> I am using tinyos 2.0.2 in TOSSIM.
>
> 2008/1/4, DAE HEE KIM <dahkim77 at gmail.com>:
> >
> > 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 : dkim11 at binghamton.edu, dahkim77 at gmail.com
>
>
>
>
> --
> 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 : dkim11 at binghamton.edu, dahkim77 at gmail.com
>
--
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 : dkim11 at binghamton.edu, dahkim77 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080104/81e119d1/attachment.htm
More information about the Tinyos-help
mailing list