Performs the discrete integration of the sampled signal X. Integral x(t) calculates a definite integral. The value of the output array at any value x is the area under the curve of the input array between 0 and x. Details
![]() |
X is the sampled signal. |
![]() |
initial condition is best described by the equation in the Details section for this VI. The default is 0.0. |
![]() |
final condition is best described by the equation in the Details section for this VI. The default is 0.0. |
![]() |
dt is the sampling interval and must be greater than zero. The default is 1.0. If dt is less than or equal to zero, the VI sets Integral X to an empty array and returns an error. |
![]() |
Integral X is the sampled output sequence. |
![]() |
error returns any error or warning from the VI. Refer to Signal Processing Error Codes for more information about these conditions. |
The integral F(t) of a function f(t) is defined as
.
Let Y represent the sampled output sequence Integral X. The Integral x(t) VI obtains the elements of Y using
for i = 0, 1, 2, ,n-1,
where n is the number of elements in X,
The initial condition and final condition minimize the overall error by increasing the accuracy at the boundaries, especially when the number of samples is small. Determining boundary conditions before the fact enhances accuracy.