gnuradio中读取vector_sink数据

 
 
 
 

#!/usr/bin/env python

from gnuradio import blocks

from gnuradio import gr

tb = gr.top_block()

src = blocks.vector_source_f([1,2,3,4,5,6])

snk = blocks.vector_sink_f()

tb.connect(src, snk)

tb.run()

print(snk.data())

你可能感兴趣的:(gnuradio中读取vector_sink数据)