Hi guys,
I am trying to write simple Pyhton applications by using the blocks in
the gnuradio. But i don’t know which module should i import to use the
related function. Is there any document about it. On net i found that
“gr module” should be imported nearly for all applications but
sometimes it doesn’t sufficient.
Thanks.
Hi guys,
To make the previous question more clear i want to give an example.
Ý am trying to produce a cosine wave and send it via USRP. Then i used
the functions
gr.sig_source_c (sample_rate, gr.GR_COS_WAVE, 10000, ampl)
dst=usrp.sink_c(which=0, interp_rate=400, nchan=1, mux=0x98,
fusb_block_size=0, fusb_nblocks=0, fpga_filename=“”,
firmware_filename=“”)
But i don’t know how to set the carrier frequecy. I have found some
functions to set it but this time i couldn’t find which module should
i import.
2010/7/9, mehmet kabasakal [email protected]:
Thanks Josh,
I will try to understand the generated python code after execution of
grc file.
One more thing, while i was searching on the net, i found
Josh Knows | Introductory Tour of the GNU Radio Project this link.
In the USRP Sink part, the script
#Tune the center frequency
u.tune(subdev._which, subdev, frequency)
gives attribute error because of ._which but when i try which() it
doesn’t give any error.
I couldn’t understand the reason.
2010/7/9, Josh B. [email protected]:
I recommend that you try the gnuradio-companion and learn from the
generated code. Also, it will drastically simplify the creation of usrp
source and sink block for you.
http://gnuradio.org/redmine/wiki/gnuradio/GNURadioCompanion
-Josh
On 07/10/2010 12:34 AM, mehmet kabasakal wrote:
gives attribute error because of ._which but when i try which() it
doesn’t give any error.
I couldn’t understand the reason.
somebody changed the api and didnt update my website. hmmm…
-Josh