Greeting,
After building up some strong Matlab’s prototype of my 802.11 receiver,
I
have to make really big and complicated GUI with lot of button’s, plots,
different tabs etc.
And my question is simple:
Any way to output complex data collected by USRP from grc to any other
enviroment (c++ or java)?
Or it would be better practice to build receiver in grc and then
plotting
results out with UDP sink (already tried that, seems to be working)?
Best
–
View this message in context:
http://gnuradio.4.n7.nabble.com/Gettin-data-out-from-GRC-to-C-or-java-tp50824.html
Sent from the GnuRadio mailing list archive at Nabble.com.
Hi Ernest,
Or it would be better practice to build receiver in grc and then
plotting results out with UDP sink (already tried that, seems to be
working)?
that’s a good question, and it depends on what you want to do, how much
stuff you’d have to port etc.
Any way to output complex data collected by USRP from grc to any other
enviroment (c++ or java)?
GRC is “just” a graphical frontend for the creation of GNU Radio flow
graphs.
GNU Radio is mostly C++, with the possibility to do a lot of things in
python. So that answers your C++ question.
The “how to get data out of GNU Radio into XY?” question gets asked a
lot, so there’s a FAQ entry for that:
http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#What-is-the-file-format-of-a-gr_file_sink-How-can-I-read-files-produced-by-a-file-sink
In nearly all languages, you can just read the native data types from a
file by using standard methods.
Greetings,
Marcus
So i can just constantly write data to file (with file sink) and open it
in a
loop in any C++ enviroment right?
–
View this message in context:
http://gnuradio.4.n7.nabble.com/Gettin-data-out-from-GRC-to-C-or-java-tp50824p50826.html
Sent from the GnuRadio mailing list archive at Nabble.com.
A pipe would probably be a better choice here, but yeah.
Or you build your own custom blocks to interface with your other code.
M
So i if would like to create a simple flow graph, with USRP source and
file
sink only, is there any way to control file buffer size (i.e i want that
any
file consist of 3k 32complex samples every write)?
Any 3.7 compatibile pipe pack? tried gr-pipe but typical “gnuradio-core”
error 
–
View this message in context:
http://gnuradio.4.n7.nabble.com/Gettin-data-out-from-GRC-to-C-or-java-tp50824p50875.html
Sent from the GnuRadio mailing list archive at Nabble.com.
On 10/17/2014 12:40 PM, Ernest S. wrote:
So i if would like to create a simple flow graph, with USRP source and file
sink only, is there any way to control file buffer size (i.e i want that any
file consist of 3k 32complex samples every write)?
You can’t control how many samples the USRP source will produce per run.
And I’m not sure that’s really what you want.
Any 3.7 compatibile pipe pack? tried gr-pipe but typical “gnuradio-core”
error 
I was suggesting you create a named pipe instead of a regular file. If
you don’t know what that means, I suggest looking it up, it’s a basic
concept of most OSes, and Google will have all the info you need.
You don’t need any addons for that.
M
Ernest - here’s an example of how to connect other stuff to GNU Radio
via
pipes - granted at much lower sample rates. Higher sample rates
shouldn’t
effect the pipe, but Matlab may not keep up with a typical 802.11 sample
rate.
If you could get this 3k sample snapshot, how do you make sure a
useful
signal will be present?
If you’re doing processing in another framework, why don’t you just use
UHD
directly w/out GNU Radio? There are finite acquisition calls in UHD
IIRC…
-John
On Fri, Oct 17, 2014 at 5:15 AM, Martin B. [email protected]
Thanks for those tips.
Matlab can handle 20M samples due to receiver object, which is buffering
data, and than sending it to Matlab. My receiver is able to demodulate
around 5x802.11 frames per second but i want something more faster.
So i can use UHD driver in C++ enviroment directly right? Sorry for
newbie
question, but im quite new to sdr platform 
Best
–
View this message in context:
http://gnuradio.4.n7.nabble.com/Gettin-data-out-from-GRC-to-C-or-java-tp50824p50898.html
Sent from the GnuRadio mailing list archive at Nabble.com.