Changes between Version 4 and Version 5 of Tutorials/k0SDR/Tutorial15


Ignore:
Timestamp:
Sep 24, 2015, 3:22:12 PM (9 years ago)
Author:
prasanthi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/k0SDR/Tutorial15

    v4 v5  
    1515 * Follow the [wiki:Tutorials/k0SDR/Tutorial13 start-up instructions] to program and setup the FPGAs on both the nodes.
    1616 * The following OEDL script resides on the console of SB6 and can be used to run spectrum sensing on both the nodes at once.
     17{{{
     18defProperty('radio',"zynq","")
     19defProperty('rx_freq1', "800e6", "")
     20defProperty('rx_freq2', "815e6", "")
     21defProperty('rx_gain', "10", "")
     22defProperty('rx_fft_bins',"256","")
     23defProperty('rx_fft_scaling',"170","")
     24defProperty('rx_fft_averaging',"256","")
     25defProperty('start_fft',"0","")
     26defProperty('time',10,"")
    1727
     28require './wiserd.rb'
     29
     30#defGroup('receiver', "node1-1.sb6.orbit-lab.org, node1-2.sb6.orbit-lab.org" ) do |node|
     31defGroup('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
     46end
     47
     48onEvent(: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
     58end
     59}}}
     60