Thanks again Martin! That one bit of knowledge has opened many doorways for
me! :)

Btw, I was looking for different ways to define a ramp input, or to send a
pulse at different times..
and was looking at how I could possibly just record a pulse into a file
then send it at certain repeat times..

As opposed to chopping a cosine with a vector of 1s and 0s or something...



On Sun, Jul 1, 2012 at 7:56 PM, Martin Braun (CEL) <martin.br...@kit.edu>wrote:

> 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
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to