[Top][All Lists]

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

Re: [Discuss-gnuradio] gr-buffer usage

From: Vincenzo Pellegrini
Subject: Re: [Discuss-gnuradio] gr-buffer usage
Date: Wed, 25 Jul 2007 12:14:42 +0200

my fromfile (file, dtype) numpy function does not accept d type =

    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


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

reply via email to

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