discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: How pass an input vector in an OOT QA test?


From: George Edwards
Subject: Re: How pass an input vector in an OOT QA test?
Date: Thu, 21 Apr 2022 14:43:46 -0500

Hi Marcus,

Thanks for offering to assist me.

The OOT signal processing blocks I have designed so far worked with streaming data. For this project, I wish to pass the data in as vectors (which is new to me).  I am writing this OOT block to accept a vector of 100 floating point elements on each iteration. 

I wrote the QA Test so I can use the Debugger to parse the C++ code and get an understanding of how vector elements are passed into a block. For the QA Test, I restricted the vector size to 4 floating pointing elements (something I can observe easily for debugging purposes) and I set the I/0 signatures accordingly: sizeof(float)*4. Inside the QA file I set the input to data = "" 2.0, 3.0, 4.0). My initial assumption was that I am passing in a vector of length 4 floating point elements. The test failed and gave an error message of data mismatched because the signature input was 16 (4*4 bytes/float) and the QA input was 4 (meaning it  saw data in stream format one float at a time and not as one big vector with 4 elements). Then, I tried rewriting: 
data = "" 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])  
Thinking, I am forcing things to look like vectors of size 4 elements, WRONG AGAIN! 
So I am seeking help on how to feed in vectors from a QA file into a block that needs its data in vector form.

Thank you!

Regards,
George 

On Thu, Apr 21, 2022 at 3:57 AM Marcus Müller <mmueller@gnuradio.org> wrote:
You'll have to tell us what you do with that `data` and what the io_signature of your
block is.

On 20.04.22 17:22, George Edwards wrote:
> Hello GNURadio Community,
>
> In an OOT QA testing of a signal processing block designed to accept an input vector of 4
> elements, I am having problems passing the QA input as a vector. It sees the input as a
> stream. I tried passing the data in two ways, but each failed. Here are the two ways I
> have formated the QA data which I would like to be seen as a vector of 4 elements:
>
> data = "" 2.0, 3.0, 4.0)  and
> data = "" 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])
>
> I would appreciate any suggestion.
>
> Thank you!
> George


reply via email to

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