discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] gr-buffer usage


From: Trond Danielsen
Subject: Re: [Discuss-gnuradio] gr-buffer usage
Date: Thu, 19 Jul 2007 13:27:56 +0200

2007/7/19, Vincenzo Pellegrini <address@hidden>:
thanks Trond,

doesn't

gr.file_source--->usrp_sink

constrain me at the maximum speed of my hard drive?

and what whould be the right flow graph setup for buffering via
gr.vector_source,
 anything like:

gr.file_source--->data=gr.vector_sink
gr.vector_source(data, repeat=true)--->usrp_sink

would be correct?

No, if you use vector_source, you should not use the gr.file_source to
load the data. How you read the data from the file depends on the
format is is stored in, but if it data recorded with GNU Radio, I
personally use numpy/scipy. Python example:

from numpy import *
# Use complex64 for gr.gr_complex and float32 for gr.float
data = fromfile("filename.dat", dtype="complex64")
src = gr.vector_source(data, repeat=True)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]