discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Timing & Sources


From: Martin Braun (CEL)
Subject: Re: [Discuss-gnuradio] Timing & Sources
Date: Sun, 1 Jul 2012 12:26:31 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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

Attachment: pgpZsNZM6zw35.pgp
Description: PGP signature


reply via email to

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