discuss-gnuradio
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Discuss-gnuradio] gr.file_sink
From
:
Kóczián Gergely
Subject
:
[Discuss-gnuradio] gr.file_sink
Date
:
Wed, 20 Jan 2010 14:42:45 +0100
Hello!
I want to use the gr.file_sink function, but if connect to a USRP i became allways 15,3 MB big file.
But if i connect a sinus source, i became a much more bigger file. ( that's normal thing)
I want latter see my files with pylab but now, i can't open.
I use the followed code:
class raw_data(gr.top_block):
def __init__(self):
gr.top_block.__init__(self)
usrp_decim = 16
audio_decimation = 10
self.IF_freq = 1e3
self.u = usrp.source_c()
adc_rate = self.u.adc_rate() #" 64 MS/s "
self.demod_rate = adc_rate / usrp_decim #" sampling rate "
self.u.set_decim_rate(usrp_decim)
self.subdev = usrp.selected_subdev(self.u, pick_subdevice(self.u))
self.u.tune(0, self.subdev, self.IF_freq)
self.audio_rate = self.demod_rate / audio_decimation #""" 32kHz """
self.src = "" gr.GR_SIN_WAVE, 350, 0.1)
self.fajl = gr.file_sink(gr.sizeof_gr_complex, "/home/sdr/Desktop/data.txt")
self.connect(self.u, self.fajl)
if __name__ == '__main__':
try:
raw_data().run()
except KeyboardInterrupt:
raw_data().stop()
pass
What did I wrong?
reply via email to
[Prev in Thread]
Current Thread
[Next in Thread]
[Discuss-gnuradio] gr.file_sink
,
Kóczián Gergely
<=
Prev by Date:
[Discuss-gnuradio] txrx.bin of latest "jblum usrp2_vrt" branch
Next by Date:
Re: [Discuss-gnuradio] benchmark_rx.py
Previous by thread:
[Discuss-gnuradio] txrx.bin of latest "jblum usrp2_vrt" branch
Next by thread:
Re: [Discuss-gnuradio] benchmark_rx.py
Index(es):
Date
Thread