[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gr-buffer usage
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] gr-buffer usage |
Date: |
Wed, 25 Jul 2007 10:05:44 -0700 |
User-agent: |
Mutt/1.5.9i |
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