discuss-gnuradio
[Top][All Lists]
Advanced

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

Capture Finite Samples


From: Richard Bell
Subject: Capture Finite Samples
Date: Wed, 29 Jan 2020 21:40:55 -0800

Hello everyone,

I'm trying to capture a user specified number of samples from 3 USRP X300's. To do this I found the finite_acquisition_v function. The problem is it behaves very irregularly, so much so that I can't figure out the right way to use it.

It seems that I have to call it once with a big number as a prerequisite. It always returns an empty type this first call.

After that first call I have to call it with a sample number request larger than ~1000 to get a none empty tuple. However, the number of samples is less than 1000, for some reason it is 728....

If I call it again a third time, I am getting an empty tuple again.

I'm wondering if someone can explain the proper way to use this for me. In theory it does exactly what I need to do in one simple function call.

Example code:

    junk = uhd_usrp_source_0.finite_acquisition_v(1000) # first call returns nothing
    data1 = uhd_usrp_source_0.finite_acquisition_v(1000) # returns 728 samples
    data2 = uhd_usrp_source_0.finite_acquisition_v(1000) # returns nothing

Thanks,

Rich

reply via email to

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