Changeset 7299
- Timestamp:
- 12/27/07 14:46:33
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/branches/releases/3.1/gr-utils/src/python/usrp_fft.py
r7288 r7299 70 70 parser.add_option("-8", "--width-8", action="store_true", default=False, 71 71 help="Enable 8-bit samples across USB") 72 parser.add_option( "--no-hb", action="store_true", default=False, 73 help="don't use halfband filter in usrp") 72 74 parser.add_option("-S", "--oscilloscope", action="store_true", default=False, 73 75 help="Enable oscilloscope display") … … 80 82 81 83 # build the graph 82 83 self.u = usrp.source_c(which=options.which, decim_rate=options.decim) 84 if options.no_hb or (options.decim<8): 85 #Min decimation of this firmware is 4. 86 #contains 4 Rx paths without halfbands and 0 tx paths. 87 self.fpga_filename="std_4rx_0tx.rbf" 88 self.u = usrp.source_c(which=options.which, decim_rate=options.decim, fpga_filename=self.fpga_filename) 89 else: 90 #Min decimation of standard firmware is 8. 91 #standard fpga firmware "std_2rxhb_2tx.rbf" 92 #contains 2 Rx paths with halfband filters and 2 tx paths (the default) 93 self.u = usrp.source_c(which=options.which, decim_rate=options.decim) 94 84 95 if options.rx_subdev_spec is None: 85 96 options.rx_subdev_spec = pick_subdevice(self.u) gnuradio/branches/releases/3.1/gr-utils/src/python/usrp_oscope.py
r6737 r7299 66 66 parser.add_option("-8", "--width-8", action="store_true", default=False, 67 67 help="Enable 8-bit samples across USB") 68 parser.add_option( "--no-hb", action="store_true", default=False, 69 help="don't use halfband filter in usrp") 68 70 parser.add_option("-C", "--basic-complex", action="store_true", default=False, 69 71 help="Use both inputs of a basicRX or LFRX as a single Complex input channel") … … 88 90 else: 89 91 self.num_inputs=1 90 self.u = usrp.source_c(nchan=self.num_inputs,decim_rate=options.decim) 92 if options.no_hb or (options.decim<8): 93 #Min decimation of this firmware is 4. 94 #contains 4 Rx paths without halfbands and 0 tx paths. 95 self.fpga_filename="std_4rx_0tx.rbf" 96 self.u = usrp.source_c(nchan=self.num_inputs,decim_rate=options.decim, fpga_filename=self.fpga_filename) 97 else: 98 #Min decimation of standard firmware is 8. 99 #standard fpga firmware "std_2rxhb_2tx.rbf" 100 #contains 2 Rx paths with halfband filters and 2 tx paths (the default) 101 self.u = usrp.source_c(nchan=self.num_inputs,decim_rate=options.decim) 102 91 103 if options.rx_subdev_spec is None: 92 104 options.rx_subdev_spec = pick_subdevice(self.u)
