discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] USRP Source replaced with a file source


From: Michael Höin
Subject: [Discuss-gnuradio] USRP Source replaced with a file source
Date: Wed, 20 Jul 2011 09:27:58 +0200

Hi all

To test my program several times with the same data I replaced the "USRP
source" with a "file source" and a throttle:

Old situation:
self.uhd_usrp_source_0 = uhd.usrp_source(
                        device_addr="addr=192.168.10.2",
                        io_type=uhd.io_type.COMPLEX_FLOAT32,
                        num_channels=1,
                )
                self.uhd_usrp_source_0.set_samp_rate(samp_rate)
                self.uhd_usrp_source_0.set_center_freq(227360000, 0)
                self.uhd_usrp_source_0.set_gain(31.5, 0)

New situation:
self.file_source = gr.file_source(gr.sizeof_gr_complex*1,
"/home/hoim/WorkDAB/Record8.dat", False)
self.throttle_0 = gr.throttle(gr.sizeof_gr_complex*1, samp_rate)

My problem is that the generated output isn't every time the same. Has
GNU Radio something like a "Master reset" that I had to use before I
start my programm? Or have somebody an idea what the origin of the
inconsistence could be?

Any help will be appreciated

Thanks
Michael





reply via email to

[Prev in Thread] Current Thread [Next in Thread]