discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to write vector to a file


From: Josh Blum
Subject: Re: [Discuss-gnuradio] How to write vector to a file
Date: Fri, 11 Nov 2011 07:08:05 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1


On 11/10/2011 10:07 PM, hasanimam wrote:
> 
> Hello everyone,
> 
> I am here to ask a question. As I am very new with gnuradio, I would really
> be happy if someone get me a solution.
> 
> I want to write vectors, which comes from stream, to a file. 
> Here is what I wanna do.
> 
> self.connect(self.u, s2v, "class")
> 

I assume self.u is a USRP with multiple channels. Otherwise, you should
not need streams to vector. The conversion would be superfluous.

> s2v transforms the stream to vector. I want the vector to be written in a
> file. 
> I know about the gr.file_sink() but it writes the stream to file, not the
> vector.
> 

The file sink will for you. Any IO size is fine, because file sink only
understands bytes.

-Josh



reply via email to

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