LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help please! How can I make this work??

I've implemented the derivative function:
 
p[n]=2y[n-2]-y[n-1]-2y[n]-y[n+1]+2y[n+2]
 
using the shift register in a for loop, where I enter the x[n] signal.
 
 
 
Now i have to make this sum using the other function inside the sum...
 
s[n]=SUM(from k=1 to 16)(p[n-k+1]*(16-k+1))
 
and I don't now how to do it!!
 
Can anybody help?
0 Kudos
Message 1 of 2
(2,482 Views)
Try using a for loop with 16 wired to the N terminal and use a shift register (initialized to 0) for the sum. In each iteration, add p[n-k+1]*(16-k+1) to the value of the shift register. As you already have the function p[n], this should be straightforward.
EDIT: a little hint: as the loop counter is 0-based, you might have to add +1 to i in order to get your k.

Message Edited by dan_u on 09-22-2006 12:01 AM

0 Kudos
Message 2 of 2
(2,472 Views)