Wednesday, 26 June 2013

Mono_tone in GNURadio Companion

GNURadio Companion is a GUI that allows you to build GNURdio flow graphs. You can open grc ( GNURadio Companion ) by this command

$ gnuradio-companion or grc

grc window will appear. On Right side you will find list of block available which you can use to create flow graphs. Left side is the working area.

  1. Double Click on options block to set general parameters for the flow graph. Type in Project title (my_mono_tone) and author (in my case Osama). Leave other parameters unchanged and click ok.
  2. Open the Sources category and double click on Signal Source. It will appear in the main window. To change the properties double click on it. Adjust settings to match with the picture at the end. The signal source is sine wave at 650 Hz and amplitude of 0.4.
  3. Expand the Audio list and double click on Audio Sink. It will appear in the main window. To change the properties double click on it. Adjust settings to match with the picture at the end.
  4. In order to connect these two blocks. click on the "out" port of Signal Source and then once on the "in" port of the Audio Sink.
  5. An active minus sign will appear if there is any error in your flow graph. If there is no error minus sign will be inactive.
  6. Click on the Generate the flow graph. A box will come up in which you can name the file. Name of this file is my_mono.grc and save
  7. Click the "Execute the flow graph" icon. You will hear a sound from your speaker. You can stop at any time by clicking "Kill the flow graph".


No comments:

Post a Comment