Thursday, April 27, 2017

Re: [Discuss-gnuradio] Recording samples for a predefined time

Hi Ali,

One way to achieve this would be to use a "Head" block with the "Num Items" set to: samp_rate*2.

Then set the values under the top_block/Options block to be:

Generate Options: No GUI
Run Options: Run to Completion.

Regards,
Nate




> On Apr 27, 2017, at 2:30 AM, do ber <03dober@gmail.com> wrote:
>
> Hi to all,
>
> I want to get I/Q samples from USRP via UHD Source and then write them to a file via File Sink.But I want to record 2 seconds of length samples. After 2 seconds I want the program stop running.
>
> Is that possible? How?
>
> Best,
> Ali
> _______________________________________________
> 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

No comments:

Post a Comment