wiki:Old/NodeHandler/FAQ/ToUseNoiseGenerator

Version 2 (modified by Surya Satyavolu, 19 years ago) ( diff )

Orbit > NodeHandler > FAQ > Noise Generator Usage

Using Noise Generator in Experiments

The main idea is this:

Along with node definitions in the first part of the experiment script, you also define the antenna to be a part of the experiment

The antennas are located here:

  • Antenna 1: Between node2-1 and node2-2
  • Antenna 2: Between node2-7 and node2-8
  • Antenna 3: Between node7-1 and node7-2
  • Antenna 4: Between node7-7 and node7-8.

I am attaching a template script to use the noise generator

The configurable parameters are

  • channel on which you want to operate: Valid channels are 1..11, 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157 and 161
  • Noise power on these channels: Limits are from -90 dBm to +5 dBm

Here is a template script to use the noise generator

#Template to use noise generator in the experiment

Experiment.defProperty(‘noisePower', -44, Noise level injected')

nodes([2,2], 'sender') {|node| …

nodes([8,8], ‘receiver') {|node| …

antenna(4,4).signal {|s|

s.bandwidth = 20
s.channel = 3
s.power = Experiment.property(“noisePower")
}


whenAllInstalled() {|node|

allNodes.startApplications

wait 10

# increase noise from -44 dBm to -20dBm in steps of 2 dBm
antenna(4,4).signal.on
-44.step(-20, 2) { |p|
  Experiment.props.noisePower = p
  wait 30
}

Experiment.done

}

Note: See TracWiki for help on using the wiki.