Editing GRAndWalkthrough

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 66: Line 66:
  
 
<syntaxhighlight lang="c++">// Required
 
<syntaxhighlight lang="c++">// Required
#include <jni.h>
+
#include  
  
 
// We'll likely want these
 
// We'll likely want these
#include <vector>
+
#include  
#include <string>
+
#include  
  
 
// Get any GNU Radio headers
 
// Get any GNU Radio headers
#include <gnuradio/top_block.h>
+
#include  
#include <gnuradio/blocks/null_source.h>
+
#include  
#include <gnuradio/blocks/throttle.h>
+
#include  
#include <gnuradio/blocks/null_sink.h>
+
#include  
 
// Other block headers next
 
// Other block headers next
  
Line 103: Line 103:
  
 
   // Connect up the flowgraph
 
   // Connect up the flowgraph
   tb->connect(src, 0, thr, 0);
+
   tb-&gt;connect(src, 0, thr, 0);
   tb->connect(thr, 0, snk, 0);
+
   tb-&gt;connect(thr, 0, snk, 0);
 
}
 
}
  
Line 112: Line 112:
 
{
 
{
 
   GR_INFO("fg", "FgStart Called");
 
   GR_INFO("fg", "FgStart Called");
   tb->start();
+
   tb-&gt;start();
 
}
 
}
  
Line 120: Line 120:
 
{
 
{
 
   GR_INFO("fg", "FgStop Called");
 
   GR_INFO("fg", "FgStop Called");
   tb->stop();
+
   tb-&gt;stop();
   tb->wait();
+
   tb-&gt;wait();
 
   GR_INFO("fg", "FgStop Exited");
 
   GR_INFO("fg", "FgStop Exited");
 
}
 
}
Line 129: Line 129:
 
                                                 jobject thiz)
 
                                                 jobject thiz)
 
{
 
{
   return env->NewStringUTF(tb->edge_list().c_str());
+
   return env-&gt;NewStringUTF(tb-&gt;edge_list().c_str());
 
}
 
}
  

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)