discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Re: expanding sig source


From: Patrick Strasser
Subject: [Discuss-gnuradio] Re: expanding sig source
Date: Tue, 13 Feb 2007 01:26:24 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050602 Thunderbird/1.0.2 Mnenhy/0.7.2.0

Josh Blum wrote on 2007-02-13 00:56:
Is there a square wave source? And can sig_source_* be expanded to produce square waves, triangle, sawtooth..?

There is a simple switch on the waveform in the code[0], with some code for each case to create the waveform. Should be no problem at all.

What I have not figured out is how to get a compact overview of the waveform constants. In Python this gets gr.GR_SIN_WAVE and siblings, and for the noise sources you have gr.GR_UNIFORM and fiends. Is there any way to get an collection you can scan to get all wave forms?

Patrick

[0] gnuradio-core/src/lib/general/gr_sig_source_X.cc.t

ps: grc rocks!
--
Engineers motto: cheap, good, fast: choose any two
Patrick Strasser <patrick dot strasser at  tugraz dot at>
Student of Telematik, Techn. University Graz, Austria





reply via email to

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