On Wed, Jul 20, 2011 at 3:27 AM, Michael Höin <h...@zhaw.ch> wrote: > 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 >
If you are running your program from the start each time and therefore removing your flow graph and rebuilding it, there is no need for a "reset" as all blocks have no state left over from the last run. There is some concept of a reset on certain blocks if you are running the flow graph multiple times in a row, though, but only the ones that store memory. So to answer your question is the always reliable "it depends." It really depends on what you are doing to your signal. Most blocks will behave deterministically, but some (very few) use random numbers that might indicate a problem. If you have your own block(s) in there somewhere, they could also be causing a problem. Tom
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio