Hi all,

after experimenting and searching a little bit I found the solution:

gr::filter::rational_resampler_base_ccf sptr resampler_filter;
resampler_filter = gr::filter::rational_resampler_base_ccf::make(...);
top_block-> connect(samp_src,resampler_filter,0) ....

And so on,

The resampler filter does not work but I need to work on it a little bit more.
If anyone experiences the same problem, this just the solution for how to 
connect blocks in c++, I guess.

Dincer

Von: Dincer Beken [mailto:dbe...@blackned.de]
Gesendet: Sonntag, 6. Oktober 2013 13:46
An: Discuss-gnuradio@gnu.org; openlte-disc...@lists.sourceforge.net
Betreff: [Openlte-discuss] Segmentation fault in when using gnuradioresampler 
block in c++ flowgraph

Hi all,

I want to connect the rational resampler to the block called "state machine". 
Whenever I invoke the rational resampler I get an "SEGMENTATION FAUL" error. I 
use an C++ flowgraph.

Header file:
gr::top_block_sptr top_block; // Included hier_block2.h
gr::filter::rational_resampler_base_ccf::sptr resampler_filter;

Source File:
resampler_filter->make(1536,1000,std::vector<float>(1,1));
top_block->connect(samp_src, 0, resampler_filter, 0);
top_block->connect(resampler_filter,0, state_machine, 0);




What am I Missing? Does the header not find the source file 
rational_resapmler_base_cf_impl.c? Do I have to use for some reason another 
(PFB) filter? How can I invoke a gnuradio block like that in general in such a 
flowgraph?

How do I have to invoke the pointer for the resampler block?

Thanks,
Dincer
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to