|
From: | address@hidden |
Subject: | Re: [Discuss-gnuradio] Stop flow graph after fixed time |
Date: | Mon, 4 Dec 2017 16:37:37 -0500 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |