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