discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Data types


From: Andrej Rode
Subject: Re: [Discuss-gnuradio] Data types
Date: Wed, 1 Nov 2017 08:46:15 +0100
User-agent: Mutt/1.7.2 (2016-11-26)

Hir ,

On Tue, Oct 31, 2017 at 11:03:57PM -0400, Tellrell White wrote:
> Hello All
> I have a question concerning data types. I'm creating a sink block in python 
> that takes float values from a "divide" block that has a vector length of 
> 1024. The output port on the divide block is red. How can set the input of my 
> block to have a red input port?

You need to match the output type of the divide block (which is probably
float) _and_ you need to match the vector length of the divide block.
Best done with setting a parameter `vlength` and setting this as your
io_signature in the constructor:
`io_signature::make (1,  1, sizeof (float)*vlen)),`

This creates a block with a configurable vector length as input.

Cheers
Andrej
-- 
Andrej Rode
GPG Key: 750B CBBB 4A75 811A 4D5F 03ED 5C23 7FB8 9A7D A2AA

Attachment: signature.asc
Description: Digital signature


reply via email to

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