Revision e4cf0d1b gr-uhd/examples/usrp_wfm_rcv_fmdet.py
| b/gr-uhd/examples/usrp_wfm_rcv_fmdet.py | ||
|---|---|---|
| 73 | 73 |
# build graph |
| 74 | 74 |
self.u = uhd.usrp_source(device_addr=options.args, stream_args=uhd.stream_args('fc32'))
|
| 75 | 75 |
|
| 76 |
# Set the subdevice spec |
|
| 77 |
if(options.spec): |
|
| 78 |
self.u.set_subdev_spec(options.spec, 0) |
|
| 79 |
|
|
| 80 |
# Set the antenna |
|
| 81 |
if(options.antenna): |
|
| 82 |
self.u.set_antenna(options.antenna, 0) |
|
| 83 |
|
|
| 76 | 84 |
usrp_rate = 320e3 |
| 77 | 85 |
demod_rate = 320e3 |
| 78 | 86 |
audio_rate = 48e3 |
| ... | ... | |
| 151 | 159 |
if not(self.set_freq(options.freq)): |
| 152 | 160 |
self._set_status_msg("Failed to set initial frequency")
|
| 153 | 161 |
|
| 154 |
# Set the subdevice spec |
|
| 155 |
if(options.spec): |
|
| 156 |
self.u.set_subdev_spec(options.spec, 0) |
|
| 157 |
|
|
| 158 |
# Set the antenna |
|
| 159 |
if(options.antenna): |
|
| 160 |
self.u.set_antenna(options.antenna, 0) |
|
| 161 |
|
|
| 162 | 162 |
def _set_status_msg(self, msg, which=0): |
| 163 | 163 |
self.frame.GetStatusBar().SetStatusText(msg, which) |
| 164 | 164 |
|
Also available in: Unified diff