discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Should return the number of input or the number of ou


From: Activecat
Subject: [Discuss-gnuradio] Should return the number of input or the number of output?
Date: Sun, 9 Mar 2014 11:58:28 +0800

Dear Sir,

A python sink block created by gr_modtool has below work() function, it returns the number of input items.

    def work(self, input_items, output_items):
        in0 = input_items[0]
        # <+signal processing here+>
        return len(input_items[0])

But a c++ sink block created by gr_modtool has the work() function return the number of output items (noutput_items).

It sounds contradict. Is there any error happening?

Regards,
Activecat

reply via email to

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