On Sat, Jun 30, 2012 at 12:47:01PM +0930, Michael Hill wrote: > I've been through many GRC companion tutorials, which show how to get various > sources up and running, but what if I want to have an input source that has a > straight line or parabola where the value varies based on a time from a 0 to 5 > count?
Hi Michael, you should realize that while that seems to be simple example, it's a very unusual thing to have in a flow graph :) That said, you can create a vector source (which you usually don't), and initialize this with something like 'range(5)' and set it to repeat. Remember that in GRC, any initial values for your blocks don't have to be numericals, but simply any valid Python code, so even a list comprehension is fine (i.e. anything that returns a vector). MB -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 Fax: +49 721 608-46071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association
pgpt7mQz4umdG.pgp
Description: PGP signature
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio