From 12:00 PM - 4:00 PM CST on Thursday, October 18, ni.com will be undergoing system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 12:00 PM - 4:00 PM CST on Thursday, October 18, ni.com will be undergoing system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Performs numeric integration on the input data using a specific numeric integration method.
The data values you wire to this node must be evenly spaced. If the data values are not evenly spaced, use the Uneven Numeric Integration node to compute the integral.
Data to integrate.
This input accepts the following data types:
This input changes to f(x,y) when the data type is a 2D array of double-precision, floating-point numbers.
This input changes to f(x,y,z) when the data type is a 3D array of double-precision, floating-point numbers.
Data to integrate.
This input accepts the following data types:
This input changes to f(x) when the data type is a 1D array of double-precision, floating-point numbers.
This input changes to f(x,y,z) when the data type is a 3D array of double-precision, floating-point numbers.
Data to integrate.
This input accepts the following data types:
This input changes to f(x) when the data type is a 1D array of double-precision, floating-point numbers.
This input changes to f(x,y) when the data type is a 2D array of double-precision, floating-point numbers.
Method to use to perform the numeric integration.
Name | Value | Description |
---|---|---|
Trapezoidal Rule | 0 | Uses the trapezoidal rule. |
Simpson's Rule | 1 | Uses the Simpson's rule. |
Simpson's 3/8 Rule | 2 | Uses the Simpson's 3/8 rule. |
Bode Rule | 3 | Uses the Bode rule. |
Default: Trapezoidal Rule
Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.
Default: No error
Interval size, which represents the sampling step size used in obtaining the input data from the function.
If the interval size is negative, this node uses its absolute value.
This input is available only if you wire a 1D array of double-precision floating-point numbers to f(x).
Default: 1
Interval size of the integration variables.
This input is available only if you wire a 2D array of double-precision, floating-point numbers to f(x,y) or a 3D array of double-precision, floating-point numbers to f(x,y,z).
Interval size of the integration variable x.
Default: 1
Interval size of the integration variable y.
Default: 1
Interval size of the integration variable z.
This input is available only if you wire a 3D array of double-precision, floating-point numbers to f(x,y,z).
Default: 1
Numeric integral.
If the number of points provided for a certain chosen method does not contain an integral number of partial sums, then the method is applied for all possible points. For the remaining points, the next possible lower order method is used. For example, if the Bode method is selected, the following example shows what this node evaluates for different numbers of points.
Number of Points | Partial Evaluations Performed |
---|---|
224 | 55 Bode, 1 Simpson's 3/8 |
225 | 56 Bode |
226 | 56 Bode, Trapezoidal |
227 | 56 Bode, 1 Simpson's |
228 | 56 Bode, 1 Simpson's 3/8 |
The previous table describes the number of data points and the partial evaluations performed by the integration method.
If 224 points are provided and the Bode method is chosen, the node arrives at the result by performing 55 Bode method partial evaluations and one Simpson's 3/8 method evaluation.
Each of the methods depends on the sampling interval dt and computes the integral using successive applications of a basic formula in order to perform partial evaluations, which depend on some number of adjacent points. The number of points used in each partial evaluation represents the order of the method. The result is the summation of these successive partial evaluations.
where j is a range dependent on the number of points and the method of integration.
The following are the basic formulas for the computation of the partial sum of each rule in ascending method order:
where
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported