Changes between Version 7 and Version 8 of GEC16Agenda/WiMAX-Tutorial/Streamload/08
- Timestamp:
- 03/20/13 13:13:25 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC16Agenda/WiMAX-Tutorial/Streamload/08
v7 v8 14 14 15 15 {{{ 16 !#ruby16 #!ruby 17 17 defProperty('attUrl', "http://internal2dmz.orbit-lab.org:5052/instr/set?", "Path to use to set attenuation") 18 18 defProperty('attenuations' [5,6,7,10,11,12,15,16,14,18,12,8,5,3], "List of attenuations to use") 19 }}} 19 20 21 and changes the sequence of events in the experiment to look like this: 22 23 {{{ 24 #!ruby 25 onEvent(: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 46 end 20 47 21 48 }}}