usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

gr_file_sink source code

JD
Juan Daniel Fernandez Martinez
Tue, Nov 20, 2012 3:54 PM

Hi everyone,

I have been trying to use gr_file_sink to store some results, the problem is that I don't get how the data is stored, ,I mean, the file is illegible. (Any advices?)
What I'm doing right know is just a test, in order  to fulfil what I need I have to write my own file_sink, so I would really appreciate if someone knows where to find the source code  of gr_file_sink (.xml, .h, .cc)

Thanks in advance


Este documento puede contener información privilegiada o confidencial. Por tanto, usar esta información y sus anexos para propósitos ajenos a los de la Universidad Icesi, divulgarla a personas a las cuales no se encuentre destinado este correo o reproducirla total o parcialmente, se encuentra prohibido en virtud de la legislación vigente. La universidad no asumirá responsabilidad sobre información, opiniones o criterios contenidos en este correo que no estén directamente relacionados con la Icesi. Si usted no es el destinatario autorizado o por error recibe este mensaje, por favor informe al remitente y posteriormente bórrelo de su sistema sin conservar copia del mismo.

Hi everyone, I have been trying to use gr_file_sink to store some results, the problem is that I don't get how the data is stored, ,I mean, the file is illegible. (Any advices?) What I'm doing right know is just a test, in order to fulfil what I need I have to write my own file_sink, so I would really appreciate if someone knows where to find the source code of gr_file_sink (.xml, .h, .cc) Thanks in advance ________________________________ Este documento puede contener información privilegiada o confidencial. Por tanto, usar esta información y sus anexos para propósitos ajenos a los de la Universidad Icesi, divulgarla a personas a las cuales no se encuentre destinado este correo o reproducirla total o parcialmente, se encuentra prohibido en virtud de la legislación vigente. La universidad no asumirá responsabilidad sobre información, opiniones o criterios contenidos en este correo que no estén directamente relacionados con la Icesi. Si usted no es el destinatario autorizado o por error recibe este mensaje, por favor informe al remitente y posteriormente bórrelo de su sistema sin conservar copia del mismo.
M
mleech@ripnet.com
Tue, Nov 20, 2012 4:01 PM

On 20 Nov 2012 10:54, Juan Daniel Fernandez Martinez wrote:

Hi

everyone,

I have been trying to use gr_file_sink to store some

results, the problem is that I don't get how the data is stored, ,I
mean, the file is illegible. (Any advices?)

What I'm doing right know

is just a test, in order to fulfil what I need I have to write my own
file_sink, so I would really appreciate if someone knows where to find
the source code of gr_file_sink (.xml, .h, .cc)

Thanks in advance


Este documento puede contener

información privilegiada o confidencial. Por tanto, usar esta
información y sus anexos para propósitos ajenos a los de la Universidad
Icesi, divulgarla a personas a las cuales no se encuentre destinado este
correo o reproducirla total o parcialmente, se encuentra prohibido en
virtud de la legislación vigente. La universidad no asumirá
responsabilidad sobre información, opiniones o criterios contenidos en
este correo que no estén directamente relacionados con la Icesi. Si
usted no es el destinatario autorizado o por error recibe este mensaje,
por favor informe al remitente y posteriormente bórrelo de su sistema
sin conservar copia del mismo.

This is a question better directed to
discuss-gnuradio, rather than here.

However, the file sink stores
values in the file in the native-binary format that is appropriate to
the type sent into the file sink. If you were expecting a textual
representation, that's not how they work. Doing so would have both
performance implications, and, more importantly, bloat the storage
footprint dramatically like five to one or more.

On 20 Nov 2012 10:54, Juan Daniel Fernandez Martinez wrote: > Hi everyone, > > I have been trying to use gr_file_sink to store some results, the problem is that I don't get how the data is stored, ,I mean, the file is illegible. (Any advices?) > What I'm doing right know is just a test, in order to fulfil what I need I have to write my own file_sink, so I would really appreciate if someone knows where to find the source code of gr_file_sink (.xml, .h, .cc) > > Thanks in advance > > ------------------------- > > Este documento puede contener información privilegiada o confidencial. Por tanto, usar esta información y sus anexos para propósitos ajenos a los de la Universidad Icesi, divulgarla a personas a las cuales no se encuentre destinado este correo o reproducirla total o parcialmente, se encuentra prohibido en virtud de la legislación vigente. La universidad no asumirá responsabilidad sobre información, opiniones o criterios contenidos en este correo que no estén directamente relacionados con la Icesi. Si usted no es el destinatario autorizado o por error recibe este mensaje, por favor informe al remitente y posteriormente bórrelo de su sistema sin conservar copia del mismo. This is a question better directed to discuss-gnuradio, rather than here. However, the file sink stores values in the file in the native-binary format that is appropriate to the type sent into the file sink. If you were expecting a textual representation, that's not how they work. Doing so would have both performance implications, and, more importantly, bloat the storage footprint dramatically like five to one or more.