Re: [Discuss-gnuradio] GNURadio Companion File Sink

2008-05-30 Thread isaacgerg

Im just trying to do a data capture with my USRP.  I would like the data in
complex format.  What should the length be set to?



Josh Blum wrote:
 
 Essentially, the gr_file_sink has one parameter, the size of the data 
 stream in bytes. GRC splits this up into two parameters, the data type 
 (complex, float, int...) and the vector length. The size of the data 
 stream = number of bytes in the data type times the vector length.
 
 Unless the data stream is an array of complex, float, int, short, or 
 byte, the vector length should be 1.
 
 -Josh
 
 isaacgerg wrote:
 What does the vector length option mean?  It is set to 1 by default.
 
 
 
 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 

-- 
View this message in context: 
http://www.nabble.com/GNURadio-Companion-File-Sink-tp17541624p17562873.html
Sent from the GnuRadio mailing list archive at Nabble.com.



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio Companion File Sink

2008-05-30 Thread George Nychis

gr.sizeof_gr_complex

- George


isaacgerg wrote:

Im just trying to do a data capture with my USRP.  I would like the data in
complex format.  What should the length be set to?



Josh Blum wrote:
Essentially, the gr_file_sink has one parameter, the size of the data 
stream in bytes. GRC splits this up into two parameters, the data type 
(complex, float, int...) and the vector length. The size of the data 
stream = number of bytes in the data type times the vector length.


Unless the data stream is an array of complex, float, int, short, or 
byte, the vector length should be 1.


-Josh

isaacgerg wrote:

What does the vector length option mean?  It is set to 1 by default.



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio







___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio Companion File Sink

2008-05-30 Thread isaacgerg

Im not down in the code, Im just trying to use the application.  What does
that number translate to?

Also, once I get the data, how is it formated?  as 2 float32 values, one for
the real arm and one for the imaginary part?
-- 
View this message in context: 
http://www.nabble.com/GNURadio-Companion-File-Sink-tp17541624p17563384.html
Sent from the GnuRadio mailing list archive at Nabble.com.



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio Companion File Sink

2008-05-30 Thread Josh Blum

isaacgerg wrote:

Im not down in the code, Im just trying to use the application.  What does
that number translate to?


Set the type to complex and leave the vector length as 1.


Also, once I get the data, how is it formated?  as 2 float32 values, one for
the real arm and one for the imaginary part?


yes, each sample will be written as 2 binary 4 byte floats, i believe 
that real part is 1st



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio Companion File Sink

2008-05-30 Thread George Nychis



Josh Blum wrote:

isaacgerg wrote:
Im not down in the code, Im just trying to use the application.  What 
does

that number translate to?


Set the type to complex and leave the vector length as 1.


But the number translates to 8, sizeof(std::complexfloat)

- George


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio Companion File Sink

2008-05-29 Thread Josh Blum
Essentially, the gr_file_sink has one parameter, the size of the data 
stream in bytes. GRC splits this up into two parameters, the data type 
(complex, float, int...) and the vector length. The size of the data 
stream = number of bytes in the data type times the vector length.


Unless the data stream is an array of complex, float, int, short, or 
byte, the vector length should be 1.


-Josh

isaacgerg wrote:

What does the vector length option mean?  It is set to 1 by default.




___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio