| 17 | {{{ |
| 18 | defProperty('radio',"zynq","") |
| 19 | defProperty('rx_freq1', "800e6", "") |
| 20 | defProperty('rx_freq2', "815e6", "") |
| 21 | defProperty('rx_gain', "10", "") |
| 22 | defProperty('rx_fft_bins',"256","") |
| 23 | defProperty('rx_fft_scaling',"170","") |
| 24 | defProperty('rx_fft_averaging',"256","") |
| 25 | defProperty('start_fft',"0","") |
| 26 | defProperty('time',10,"") |
| 28 | require './wiserd.rb' |
| 29 | |
| 30 | #defGroup('receiver', "node1-1.sb6.orbit-lab.org, node1-2.sb6.orbit-lab.org" ) do |node| |
| 31 | defGroup('receiver', "node1-2.sb6.orbit-lab.org" ) do |node| |
| 32 | node.addApplication("test:app:wiserd") do |app| |
| 33 | app.setProperty('--radio',property.radio) |
| 34 | if ((node).to_s.casecmp("node1-1.sb6.orbit-lab.org") == 0) |
| 35 | app.setProperty('--zynq_rx_freq', property.rx_freq1) |
| 36 | else |
| 37 | app.setProperty('--zynq_rx_freq', property.rx_freq2) |
| 38 | end |
| 39 | |
| 40 | app.setProperty('--zynq_rx_gain', property.rx_gain) |
| 41 | app.setProperty('--zynq_fft_bins', property.rx_fft_bins) |
| 42 | app.setProperty('--zynq_fft_scaling', property.rx_fft_scaling) |
| 43 | app.setProperty('--zynq_avg_window', property.rx_fft_averaging) |
| 44 | app.setProperty('--fft_engine',property.start_fft) |
| 45 | end |
| 46 | end |
| 47 | |
| 48 | onEvent(:ALL_UP_AND_INSTALLED) do |event| |
| 49 | wait 5 |
| 50 | info "Starting the Receiver" |
| 51 | group("receiver").startApplications |
| 52 | wait 1 |
| 53 | property.start_fft = "1" |
| 54 | wait property.time |
| 55 | property.start_fft = "0" |
| 56 | group("receiver").stopApplications |
| 57 | Experiment.done |
| 58 | end |
| 59 | }}} |
| 60 | |