3 from gnuradio import gr, gru
4 from gnuradio.eng_option import eng_option
5 from optparse import OptionParser
8 class my_graph(gr.flow_graph):
11 gr.flow_graph.__init__(self)
13 parser = OptionParser(option_class=eng_option)
14 (options, args) = parser.parse_args ()
19 src = gr.lfsr_32k_source_s()
20 head = gr.head(gr.sizeof_short, 2048)
21 self.dst = gr.vector_sink_s()
22 self.connect(src, head, self.dst)
24 if __name__ == '__main__':
30 for s in fg.dst.data():
31 f.write("%3d, " % (s & 0xff,))
32 f.write("%3d, " % ((s >> 8) & 0xff,))
37 except KeyboardInterrupt: