LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does the Derivative x(t) VI different than Derivative x(t) PtbyPT VI?

Why does the Derivative x(t) VI use Y = (Xi+1 - Xi-1) / 2dt whereas the Derivative x(t) PtbyPT VI uses Y = (Xi+1 - Xi-1) / dt? It seems to me that dividing by 2dt isn't right.
 
George
0 Kudos
Message 1 of 3
(2,670 Views)
George,

x[i+1] - x[i-1] is the difference across two sample intervals, hence the 2*dt, because that is the time difference between the x samples. In the point by point VI an uninitialized shift register is used to retain the previous sample so it is calculating x[i] - x[i-1], a single dt interval.

Lynn
0 Kudos
Message 2 of 3
(2,663 Views)

Could i ark you about using Derivative x(t) VI function ?

coz i'm using this function but it's not work ! i don't know why?

the output of the function always zero even the input is the signals.

i compose the example.vi that i try to find the derivative.

 

 
0 Kudos
Message 3 of 3
(2,606 Views)