root/vtcross/branches/sriram/power_check.py @ 349

Revision 349, 0.7 KB (checked in by sriram, 15 years ago)

Simply prints power in the mentioned band

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2#Transmission and reception, one ata a time on the same antena
3
4from gnuradio import gr, gru, modulation_utils
5from gnuradio import eng_notation
6from gnuradio.eng_option import eng_option
7from optparse import OptionParser
8from numpy import random
9import random, time, struct, sys, math
10import traceback
11# from current dir
12from transmit_path import transmit_path
13from receive_path import receive_path
14
15def main():
16        hop_freq = 462.5625e6
17        while True
18                tb.rxpath.min_freq = hop_freq - 80e3
19                tb.rxpath.max_freq = hop_freq + 80e3
20                tb.rxpath.get_avg_power(10)
21
22if __name__ == '__main__':
23    try:
24        main()
25    except KeyboardInterrupt:
26        pass
Note: See TracBrowser for help on using the browser.