On Wed, Jul 25, 2007 at 12:14:42PM +0200, Vincenzo Pellegrini wrote:
> my fromfile (file, dtype) numpy function does not accept d type =
> complex32... 
> 
> 
>     data = fromfile("/root/Desktop/rx.dat", dtype="complex32")
> TypeError: data type not understood
> 
> 
> 
> 
> but what is the usual good way in gnuradio to fill a vector with data
> from files?
> is there an alternative to this?
> the only thing I need is to set up my vector source for feeding the usrp
> with samples

If you're reading binary data from files, the usual way it to just
use  gr.file_source(gr.sizeof_gr_complex, 'my-filename')

Eric


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to