[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Difference between run and start/stop commands
From: |
address@hidden |
Subject: |
Re: [Discuss-gnuradio] Difference between run and start/stop commands |
Date: |
Thu, 15 Dec 2005 13:45:06 -0500 |
On Wed, 14 Dec 2005 12:24:08 -0500, address@hidden wrote:
>> Most graphs will run forever unless you explicity tell them to stop.
>> The exceptions are those which contain blocks that return -1 from
>> their work function. This is a kind of EOF indication. The most common
>> block that returns -1 is gr.file_source. This allows us to process
>> data from a file and terminate when it's done. The other block that
>> has this feature is gr.head(sizeof_item, nsamples). It returns -1
>> after it copies nsamples from its input to its output. Use it when
>> you want to only run something for a fixed number of samples.
> I couldn't find any such line ( in any file in that directory. Any ideas?
It's used a lot in the testing script for make check. Look in the
gnuradio-core/src/python/gnuradio/gr for the file qa_*.py.
Can't help with the other questions.
Mike
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .