Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 6th, 2012  |  syntax: Python  |  size: 0.22 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. from rtlsdr import *
  2.  
  3. sdr = RtlSdr()
  4.  
  5. sdr.rs = 0.5e6
  6. sdr.fc = 100e6
  7. sdr.gain = 10
  8.  
  9. print 'Rs (pyrtlsdr):', sdr.rs
  10. print 'Fc (pyrtlsdr):', sdr.fc
  11. print 'Fc (librtlsdr):', librtlsdr.rtlsdr_get_center_freq(sdr.dev_p)
clone this paste RAW Paste Data