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 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Allen, Cam Sent: Monday, December 19, 2011 4:58 PM To: Ed Criscuolo Cc: [email protected] Subject: Re: [Discuss-gnuradio] Vector operation in GRC Hmm... I'm not sure about that. Seems reasonable to assume that the stream-to-vector and vector-to-stream blocks would be inverses of each other. Mostly I'd just be worried about the first or last subtraction - you might only get a length 1023 vector out at the end. When you link it up, can you tell whether it produces reasonable results? -----Original Message----- From: Ed Criscuolo [mailto:[email protected]] Sent: Monday, December 19, 2011 4:42 PM To: Allen, Cam Cc: [email protected] Subject: Re: [Discuss-gnuradio] Vector operation in GRC Will that preserve the absolute positions of the original vector elements? The initial vector represents an FFT, so it's important to me that I keep the same positions. @(^.^)@ Ed On 12/19/11 4:33 PM, Allen, Cam wrote: > I would probably try converting the vector to a stream, delay the stream by 1 > sample, subtract one stream from the other, and then convert the resulting > (difference) stream back to a vector. > > -Cam > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf > Of Ed Criscuolo > Sent: Monday, December 19, 2011 4:21 PM > To: [email protected] > Subject: [Discuss-gnuradio] Vector operation in GRC > > I have a vector quantity (size 1024), and I want to do a calculation > on it such that v_out[i] = v_in[i] - v_in[i-1] > > Is such a calculation possible in GRC? I haven't found any way to get > a hold of the individual elements of a vector. > > @(^.^)@ Ed > > _______________________________________________ > Discuss-gnuradio mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
