Have you already tried using "Integration and differentiation" function located under "Mathematics" subpalette on the block diagram? Two of them maybe could help you for the integration:
- Numeric Integration.vi: Performs numeric integration on the Input Array using one of four popular numeric integration methods. The data type you wire to the Input Array input determines the polymorphic instance to use;
- Integral x(t): 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;
These functions are included into the "Integration and differentiation analysis tools"; if you don't have this package installed you can use the "Integral.vi" Express VI, as suggested into the following example inserted into the Example finder:
NI Example finder -> type integration; the example is "Integral.vi"
Hope this helps.
Best regards,
Fabio
Fabio M.
NI
Principal Engineer