discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Changing data type of custom block


From: Tellrell White
Subject: [Discuss-gnuradio] Changing data type of custom block
Date: Mon, 12 Feb 2018 21:21:30 -0500

Hello All
I have a custom sink block that I want to be able to a vector input of length 1024, however, I can't seem to change the data type of the block. The code I'm using is the following in which the data type is float and I've made the vector length equal to 1024, a parameter. The flow graph is attached.


def __init__(self, num_values=1024, V_len=1024):
        gr.basic_block.__init__(self,
            name="ED_block",
            in_sig=[(np.float, V_len)],
            out_sig=[])
        self.V_len = V_len
        self.num_values = num_values
        self.seen = 0  

Attachment: ener_dtec_sim1.grc
Description: Binary data


reply via email to

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