discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Vector operation in GRC


From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] Vector operation in GRC
Date: Mon, 19 Dec 2011 17:20:09 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

If you're somewhat familiar with how to write/modify blocks, it probably 
wouldn't be difficult to implement that functionality by making a new block 
that is a copy of gr_multiply_const_vcc.cc (for instance) and changing the work 
function to do what you want.

Sean

Here's a vector-subtract graph that should do what Ed wants, might need some tweaking.

Performance won't be as good as with a dedicated block to do the same thing, but if the data rates aren't obscene, this should work reasonably well, I think. Ed mentioned that the vector is the result of an FFT, so I simply placed an FFT block in there for
  illustrative purposes.




--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

Attachment: vector_subtract.grc
Description: application/gnuradio-grc

Attachment: vector_subtract.py
Description: Text Data


reply via email to

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