Changes between Initial Version and Version 1 of Old/NodeHandler/FAQ/ToUseNoiseGenerator


Ignore:
Timestamp:
Sep 29, 2005, 5:32:27 PM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/NodeHandler/FAQ/ToUseNoiseGenerator

    v1 v1  
     1[wiki:WikiStart Orbit] > [wiki:NodeHandler NodeHandler] > [wiki:NodeHandler/FAQ FAQ] > Noise Generator Usage
     2
     3= Using Noise Generator in Experiments =
     4
     5The main idea is this:
     6
     7Along with node definitions in the first part of the experiment script,
     8you also define the antenna to be a part of the experiment
     9
     10The antennas are located here:
     11  * Antenna 1: Between node2-1 and node2-2
     12  * Antenna 2: Between node2-7 and node2-8
     13  * Antenna 3: Between node7-1 and node7-2
     14  * Antenna 4: Between node7-7 and node7-8.
     15
     16I am attaching a template script to use the noise generator
     17
     18The configurable parameters are
     19  * channel on which you want to operate:
     20    Valid channels are 1..11, 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157 and 161
     21  * Noise power on these channels: Limits are from -90 dBm to +5 dBm
     22
     23Here is a template script to use the noise generator
     24{{{
     25#Template to use noise generator in the experiment
     26
     27Experiment.defProperty(‘noisePower', -44, Noise level injected')
     28
     29nodes([2,2], 'sender') {|node| …
     30
     31nodes([8,8], ‘receiver') {|node| …
     32
     33antenna(4,4).signal {|s|
     34s.type = ‘noise’
     35s.bandwidth = 20
     36s.channel = 3
     37s.power = Experiment.property(“noisePower")
     38}
     39
     40
     41whenAllInstalled() {|node|
     42
     43allNodes.startApplications
     44
     45wait 10
     46
     47# increase noise from -44 dBm to -4dBm in steps of 2 dBm
     48antenna(4,4).signal.on
     49-44.step(4, 2) { |p|
     50  Experiment.props.noisePower = p
     51  wait 30
     52}
     53
     54Experiment.done
     55
     56}
     57
     58}}}