$ 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.
- Double Click on options block to set general parameters for the flow graph. Type in Project title (my_transmit_receive) and author (in my case Osama). Leave other parameters unchanged and click ok.
- 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 cosine wave at 1000 Hz and amplitude of 0.01.
- 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.
- In Audio list double click on Audio 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.
- 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.
- Search for Gui Scope and Place two WX Gui Scope Sink and connect one to Audio Source and other to Signal Source.
- 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.
- 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_both.grc and save
- 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