#!/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())
时间: 2025-01-21 12:31:42
#!/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())