Re: [Discuss-gnuradio] Implementing callbacks in custom blocks

2014-07-21 Thread Johnathan Corgan
On 07/20/2014 03:24 AM, Johannes Demel wrote: I'm not entirely sure if it still holds true, but that might be an error related to SWIG. For some reason virtual header files don't get swig'ed again unless explicitly triggered. Just do a 'make clean' and 'make' again. That should rebuild your

[Discuss-gnuradio] Implementing callbacks in custom blocks

2014-07-20 Thread jsam45
Using gr_modtool, I am trying to make a simple Gain block (called var_gain) which multiplies the input with a constant. I have a private variable called d_gain in the var_gain_impl class and a public function set_gain(float gain) which sets the value of d_gain to the argument. I modified the xml

Re: [Discuss-gnuradio] Implementing callbacks in custom blocks

2014-07-20 Thread Johannes Demel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hey, I'm not entirely sure if it still holds true, but that might be an error related to SWIG. For some reason virtual header files don't get swig'ed again unless explicitly triggered. Just do a 'make clean' and 'make' again. That should rebuild your

Re: [Discuss-gnuradio] Implementing callbacks in custom blocks

2014-07-20 Thread Marcus Müller
In addition to what Johannes said: Make sure that you have virtual void set_gain(float gain) = 0; in your var_gain.h and virtual void set_gain(float gain); in your var_gain_impl.h, as well as void var_gain_impl::set_gain(float gain) { ... } in your

Re: [Discuss-gnuradio] Implementing callbacks in custom blocks

2014-07-20 Thread jsam45
Remaking after 'make clean' solved the problem. Thanks a lot for the help! Joseph Samuel -- View this message in context: http://gnuradio.4.n7.nabble.com/Implementing-callbacks-in-custom-blocks-tp49462p49468.html Sent from the GnuRadio mailing list archive at Nabble.com.