Hi Chad!
So, yeah, it seems we forgot to wrap the raw C++ GLFSR with SWIG, so that it's not directly available in Python-land.
So, this[1] fixes that.
You'd use it like this:
* have an import Block, "from gnuradio import digital"
* Have a variable with id "taps_gen" (or so), value "digital.glfsr(degree, seed)". Any integer seed for which (seed%(2**degree))>0 is valid.
* in your Filter, use "[taps_gen.next_bit() for _ in range(31)]"
Hope this helps,
Best regards,
Marcus
[1] https://github.com/gnuradio/gnuradio/pull/1472
On 09/26/2017 05:45 PM, Chad Spooner wrote:
All:
I've got a working signal generator in GRC that uses the FFT Filter block. In the Tapsfield of this block, I've hand-entered a length-31 sequence that is an MLSR sequence.These sequences can be generated using the GRC block GLFRS Source as well.
What I would like to do is call GLFSR from within the FFT Filter Taps field with argumentsthat depend on a Parameter. Specifically, the Degree parameter of GLFSR wouldbe tied to a Parameter in the flowgraph.
I've been searching around the web for a way to do this, but I can't seem to find howto call things like GLFSR as opposed to using the GLFSR block in GRC. My Googlesearches do not seem to contain the correct keywords to get me to the help I need.
I'd appreciate any hints, especially links to explanations on the web.
Thanks!
Chad
-- Chad M. Spooner NorthWest Research Associates 301 Webster Street Monterey, CA 93940 cmspooner@nwra.com 831 582 4904 cyclostationary.blog
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment