Accessing data in sink


#1

Hi,

I am confused about how to access the data that is present in the
sink. I mean that I need to send the sink data into some other
component and need to access all the contents.

How can I do that?

Thanks


#2

I am confused about how to access the data that is present in the
sink. I mean that I need to send the sink data into some other
component and need to access all the contents.

How can I do that?

Thanks

Just add and connect another sink to the same data source. You can ‘fan
out’
the flow graph as much as needed (within resource limits, of course).
Paul M.


#3

On Mon, Nov 10, 2008 at 4:04 PM, Mayank G. removed_email_address@domain.invalid
wrote:

Hi,

I am confused about how to access the data that is present in the sink. I
mean that I need to send the sink data into some other component and need to
access all the contents.

How can I do that?

Thanks

Are you talking about how to read data off the file to which the sink
writes
its output? You can do that in matlab/oactave using the
read_float_binary
file which is located in the source tarball. Look for it in
gnuradio_dir/gnuradio-core/src/utils. The file is a binary file which
contains raw data from the input without any header, so you can use a
function like fopen() and fread() to read the contents of the file.

Karthik


#4

Karthik Vijayraghavan wrote in post #747875:

On Mon, Nov 10, 2008 at 4:04 PM, Mayank G. removed_email_address@domain.invalid
wrote:

Hi,

I am confused about how to access the data that is present in the sink. I
mean that I need to send the sink data into some other component and need to
access all the contents.

How can I do that?

Thanks

Are you talking about how to read data off the file to which the sink
writes
its output? You can do that in matlab/oactave using the
read_float_binary
file which is located in the source tarball. Look for it in
gnuradio_dir/gnuradio-core/src/utils. The file is a binary file which
contains raw data from the input without any header, so you can use a
function like fopen() and fread() to read the contents of the file.

Karthik

Hi,
this is my first time that I’m writing here I need to see the bits that
I stored in a file, but How I can open it? Someone can explain me very
simply the steps that I have to do. I’m a beginner :frowning: