discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Changing the modulation based on a stream tag


From: Damindra Bandara
Subject: [Discuss-gnuradio] Changing the modulation based on a stream tag
Date: Sun, 12 Feb 2017 12:16:14 -0500

Hi,

I have  a flow graph where I try to change the modulation based on a stream tag. This is how I do it.

1- Based on a event add a 'modulation change tag' at the source block with the required modulation.
2-Inside the 'chunks_to_symbols_bc_impl.cc', I read the tag and change the symbol table based on the tag value.
3-Also inside 'repack_bits_bb_impl.cc' block I read the tag and change the d_l and d_k values based on the tag value.
4- When I run the code and add the tag from the source , the two blocks read the tag properly. However when it tries to change the symbol table it fails giving the following  error.

python2: /usr/local/src/gnuradio/build/gr-digital/lib/chunks_to_symbols_bc_impl.cc:141: virtual int gr::digital::chunks_to_symbols_bc_impl::work(int, gr_vector_const_void_star&, gr_vector_void_star&): Assertion `((unsigned int)in[i]*d_D+d_D) <= d_symbol_table.size()' failed.

I appreciate if you could help me to get this this working.

Thank you,
Damindra
--
Damindra Savithri Bandara,
Ph.D. in Information Technology (Candidate)
George Mason University,
Fairfax,
Virginia

reply via email to

[Prev in Thread] Current Thread [Next in Thread]