Forum: GNU Radio block question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Brett L. Trotter (Guest)
on 2008-11-22 21:43
(Received via mailing list)
two interrelated questions here:
1) in a block with minimum output streams = 1 and maximum = 1, do I need
to know if the output stream is not connected and not try to fill the
output buffer at all (or will outputitems be 0?)
and 2) if yes, how do I get a count of the number of connected streams?
Brett L. Trotter (Guest)
on 2008-11-22 21:48
(Received via mailing list)
Brett L. Trotter wrote:
> two interrelated questions here:
> 1) in a block with minimum output streams = 1 and maximum = 1, do I need
> to know if the output stream is not connected and not try to fill the
> output buffer at all (or will outputitems be 0?)
> and 2) if yes, how do I get a count of the number of connected streams?
>
>
drat- should have proof read that. minimum was meant to be 0.
please excuse....
Johnathan C. (Guest)
on 2008-11-22 21:52
(Received via mailing list)
On Sat, 2008-11-22 at 13:47 -0600, Brett L. Trotter wrote:
> Brett L. Trotter wrote:

> two interrelated questions here:
> 1) in a block with minimum output streams = 1 and maximum = 1, do I need
> to know if the output stream is not connected and not try to fill the
> output buffer at all (or will outputitems be 0?)
> and 2) if yes, how do I get a count of the number of connected streams?

Check the length of the output_items array, that tells you how many
outputs are connected.  You still need to return the proper value from
the work function, even if there are no outputs.

-Johnathan
This topic is locked and can not be replied to.