[Top][All Lists]

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

Optional Output Custom Python Block

From: Cameron Matson
Subject: Optional Output Custom Python Block
Date: Fri, 18 Jun 2021 14:03:22 -0500

Hello everyone,

Using gnuradio3.8 on Mac.

I'm trying to write a custom python block (not an embedded python block) with an optional output.  I have the "optional" flag set to true in the YAML file, so GRC doesn't complain when it isn't connected.  The block is working fine when the second port is connected, but if it isn't it complains:
insufficient connected output ports (2 needed, 1 connected)

It's an interp block with vector i/o--don't know if that makes a difference.  The constructor looks like this:

in_sig=[(np.float32, self.vlen)],

out_sig=[(np.float32, self.vlen),
(np.float32, self.vlen)],

Thank you,


reply via email to

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