I am using two TVRx modules on the same motherboard to write a 1 second sample every minute for 30mins. theoretically I should have 60 sample sets, collectively.
I am able to write the first sample set succesfully but all writes after that fail!
Please take a moment to look at what I may be doing
wrong.
parser = OptionParser(option_class=eng_option, usage=usage) parser.add_option("-R", "--rx-subdev-spec0", type="subdev", default=None, help="first channel select USRP Rx side A or B (default=A)")
parser.add_option("-r", "--rx-subdev-spec1", type="subdev", default=None, help="second channel select USRP Rx side A or B (default=A)")
parser.add_option("-d", "--decim", type="int", default=256, help="set fgpa decimation rate to DECIM [default=%default]") parser.add_option("-f", "--freq", type="eng_float", default=100e6,
help="set frequency to FREQ", metavar="FREQ") parser.add_option("-g", "--gain", type="eng_float", default=None, help="set gain in dB (default is midpoint)")
parser.add_option("-N", "--nsamples", type="eng_float", default=9600000, help="number of samples to collect [default=9600000]") parser.add_option("-t", "--time", type="eng_float", default=0,
help="length of recording in seconds [default=0]")
if options.gain is None: # if no gain was specified, use the mid-point in dB
g0 = self.subdev0.gain_range() g1 = self.subdev1.gain_range() options.gain = float(g0[0]+g0[1])/2
# wire up the head of the chain self.connect(self.u, self.di) self.connect((self.di,0), self.skiphead0, self.head0, self.dst0)
self.connect((self.di,1), self.skiphead1, self.head1, self.dst1)