Question on rx_streaming_samples/libursp2

Hi,

(I am using the VRT code but I don’t think it matters for the questions
below)

In rx_streaming_samples.cc one finds the following code:

while (!signaled &&
!handler->has_errored_p() &&
!handler->has_finished_p()) {
bool ok = u2->rx_samples(handler.get());
if (!ok){
fprintf(stderr, “u2->rx_samples failed\n”);
return 1;
}
}

Does every call of u2->rx_samples(handler.get()) result in one call of
e.g. file_writer_32fc ?

Is there any way of receiving samples from the usrp2 that doesn’t
involve calling “start_rx_streaming” ?

BR/
Per

On Fri, Feb 12, 2010 at 07:31:57PM +0100, Per Z. wrote:

    !handler->has_finished_p()) {

bool ok = u2->rx_samples(handler.get());
if (!ok){
fprintf(stderr, “u2->rx_samples failed\n”);
return 1;
}
}

Does every call of u2->rx_samples(handler.get()) result in one call
of e.g. file_writer_32fc ?

No. It could be called many times.

Is there any way of receiving samples from the usrp2 that doesn’t
involve calling “start_rx_streaming” ?

Somebody’s got to tell it to start streaming.

Eric