예제 #1
0
 def __init__(self, host, port, pkt_size, eof):
     gr.top_block.__init__(self, "vector_source")
     data = [i*0.01 for i in range(1000)]
     vec = blocks.vector_source_f(data, True)
     udp = blocks.udp_sink(gr.sizeof_float, host, port, pkt_size, eof=eof)
     self.connect(vec, udp)