Tuesday, May 2, 2017

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

Hi Nate,

Thanks for the reply and sorry for the late answer. For the future readers; what you suggested has worked. If we could use WX GUI or QT GUI, it would be better. I guess there is no way to use these blocks in this situation.

Regards,
Ali

2017-04-27 13:29 GMT+03:00 Nate Temple <nate.temple@ettus.com>:
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


No comments:

Post a Comment