Tutorials/k0SDR/Tutorial22: multiantennareceiver.rb

File multiantennareceiver.rb, 865 bytes (added by tkuber, 8 months ago)
Line 
1refApplication('rx_multi_samples_file','rx_multi_samples_file') {|a|
2  a.path = "export LC_ALL=C;/root/uhd/host/build/examples/rx_multi_samples_file"
3}
4
5defGroup('client1', 'node2-7.outdoor.orbit-lab.org') {|n|
6    n.addApplication('rx_multi_samples_file'){|app|
7  }
8}
9
10defGroup('client2', 'node2-8.outdoor.orbit-lab.org') {|n|   
11    n.addApplication('rx_multi_samples_file'){|app|
12  }
13}
14
15onEvent(:ALL_UP) { |event|
16
17  info "Start client1 and client2"
18  #group('tx_node').exec('export LC_ALL=C;/root/uhd/host/build/examples/tx_samples_from_file')
19  #group('rx_node').exec('export LC_ALL=C;/root/uhd/host/build/examples/rx_samples_to_file')
20  wait 10
21  allGroups.startApplications
22  wait 10
23  group('client1').exec("pkill -9 rx_multi_samples_file")
24  group('client2').exec("pkill -9 rx_multi_samples_file")
25  allGroups.stopApplications
26
27
28  Experiment.done
29  exit
30}