Example Code

Using the Time Domain Math Express VI for an Integral in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This code allows calculating an integral using the Time Domain Math Express VI.

 

Description
This code takes an integral of the input array. The Time Domain Math Express VI is set to Integral. The express VI calculates the integral using the index of the array as delta time. To calculate the actual sum under the curve, the result from the express VI must be divided by the sampling rate.

 

Requirements
LabVIEW Base Development System (or compatible)

 

Steps to Implement or Execute Code
1. Select the Input Data
2. Run the VI
3. Observe the data on the graph.
4. Check the result on the indicator

Additional Information or References
Capture.PNG
**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.