discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Stop flow graph after fixed time


From: Nate Temple
Subject: Re: [Discuss-gnuradio] Stop flow graph after fixed time
Date: Fri, 1 Dec 2017 10:57:06 -0800

A combination of the Skip Head and Head blocks will give you the desired 
result. 

[Source] -> [Throttle] -> [Skip Head, Num Items=samp_rate*3] -> [ Head, Num 
Items=samp_rate*5 ] -> File Sink 

This will Skip 3 seconds and record 5 seconds. Within the Options block, set 
the flowgraph to be "No Gui" and "Run to completion".


> On Nov 30, 2017, at 10:17 AM, address@hidden wrote:
> 
> Hi all,
> I have a quick question. Let us say I have a simple GRC with source and File 
> sink. I would like to generate a sine wave for a fixed period (for example 
> for 2 seconds) and stop the flow graph. Which means, I would like to save 
> only 2 seconds of data in duration. I just wanted to know how I would be able 
> to run my program, or save only a fixed period of signal not the entire 
> generated sine wave.
> 
> 
> Thank you
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

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