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

thanks Eric

vincenzo

On Tue, 2007-07-24 at 20:38 -0700, Eric Blossom wrote:
> On Tue, Jul 24, 2007 at 12:36:10PM +0200, Vincenzo Pellegrini wrote:
> > thanks Trond,
> > I went your way, and actually my stream gets loaded right into the ram
> > as I wanted..:)
> > my problem is now that.. doing:
> > 
> >         data = fromfile("/root/Desktop/ofdm_encode_1H.dump",
> > dtype="complex64")
> >         vector_source = gr.vector_source_c(data,True)
> 
> 
> You might want to try dtype="complex32"
> 
> Eric



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

Reply via email to