Editing Guided Tutorial GRC

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 89: Line 89:
 
[[File:size_mismatch.png|600px|]]
 
[[File:size_mismatch.png|600px|]]
  
We see that <span style="color:green">in the specified connection, there is size mismatch.</span> This is due to our data type size mismatch. GNU Radio will not allow us to chain together blocks of different data sizes, so let's change the data type of all of our subsequent blocks. We can now generate and execute as before. We now see our sine wave on one channel.
+
We see that <span style="color:green">in the specified connection, there is size mismatch.</span> This is due to our data type size mismatch. GNU Radio will not allow us to chain together blocks of different data sizes, so let's change the data type of all of our subsequent blocks. We can now generate and execute as before.
  
 
[[File:tutorial_two_2.png|600px|tutorial_two_2.grc]]
 
[[File:tutorial_two_2.png|600px|tutorial_two_2.grc]]
 +
 +
We now see our sine wave on one channel. We can click on the screen and move the mouse to zoom and rescale.
 +
 +
== A More Complex Flowgraph ==
 +
 +
Now that we are able to create flowgraphs on our own, lets try creating a more complicated flowgraph with many specific parameters. Note that not all block parameters are displayed in the main window, so use the text below (not just the screenshot) to set the parameters of each block.
 +
 +
[[File:tutorial_two_3.png|600px|tutorial_two_3.grc]]
 +
 +
Detailed Changes:<br />
 +
<span style="color:gray">- We are starting a new flowgraph with '''ID''' &quot;tutorial_two_3&quot;</span><br />
 +
<span style="color:blue">- In '''QT GUI Range''', '''ID''' to &quot;samp_rate&quot;, '''Default Value''' to &quot;5*freq&quot;, '''Start''' to &quot;0.5*freq&quot;, '''Stop''' to &quot;20*freq&quot;, '''Step''' to &quot;200&quot;</span><br />
 +
<span style="color:green">- In '''Variable''', '''ID''' to &quot;freq&quot;, '''Value''' to &quot;2e3&quot;</span><br />
 +
<span style="color:purple">- In '''Signal Source''', '''Frequency''' to &quot;freq&quot;, '''Waveform''' to &quot;Sine&quot;</span><br />
 +
</span><br />
 +
- In '''Throttle''', '''Sample Rate''' to 32e3
 +
 +
Once we have verified our changes, let's '''Generate''', and '''Execute'''. It should produce a window that has two tabs, one showing the time domain and one showing the frequency domain.  There should also be a slider at the bottom to control the sample rate (of the signal source) in realtime.  Changing this slider should change the observed frequency in the time and frequency sinks.
 +
 +
Sampling rate is an interesting subject in GNU Radio -- and, indeed, any software radio platform. Please see the [[Sample_Rate_Tutorial|Sample rate tutorial]].
  
 
[[Category:Guided Tutorials]]
 
[[Category:Guided Tutorials]]

Please note that all contributions to GNU Radio are considered to be released under the Creative Commons Attribution-ShareAlike (see GNU Radio:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)