Changes between Version 7 and Version 8 of GEC16Agenda/WiMAX-Tutorial/Streamload/08


Ignore:
Timestamp:
03/20/13 13:13:25 (11 years ago)
Author:
Fraida Fund
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC16Agenda/WiMAX-Tutorial/Streamload/08

    v7 v8  
    1414
    1515{{{
    16 !#ruby
     16#!ruby
    1717defProperty('attUrl', "http://internal2dmz.orbit-lab.org:5052/instr/set?", "Path to use to set attenuation")
    1818defProperty('attenuations' [5,6,7,10,11,12,15,16,14,18,12,8,5,3], "List of attenuations to use")
     19}}}
    1920
     21and changes the sequence of events in the experiment to look like this:
     22
     23{{{
     24#!ruby
     25onEvent(:ALL_UP_AND_INSTALLED) do |event|
     26  l = property.attenuations
     27  wait 5
     28  system("/home/#{ENV['USER']}/getbsconf -i wimaxrf --oml-server tcp:oml:3003 --oml-id console --oml-exp-id #{Experiment.ID}")
     29  group("server").exec("/usr/bin/python -m SimpleHTTPServer")
     30  group("client1").startApplications
     31  l.each do |a|
     32    system("/usr/bin/wget -qO- \"#{property.attUrl}portA=#{property.client1}\&portB=9\&att=#{a}\"")
     33    wait 5
     34  end
     35  group("client1").stopApplications
     36  wait 5
     37  group("client2").startApplications
     38  l.each do |a|
     39    system("/usr/bin/wget -qO- \"#{property.attUrl}portA=#{property.client2}\&portB=9\&att=#{a}\"")
     40    wait 5
     41  end
     42  group("client2").stopApplications
     43  wait 5
     44  allGroups.stopApplications
     45  Experiment.done
     46end
    2047
    2148}}}