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.sig_source_c(200, 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?
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to