Example Code

Find Maximum and Minimum Data Values Using Express VIs 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

1. Overview:

This Example uses Statistics Express VI to find the maximum and minimum values of a signal and their indexes.


2. Description: 

LabVIEW Express VIs are a great way to Acquire, Analyze and Present with minimal coding.  In this example a sine signal with noise is simulated with the "Simulate Signal Express VI" and its maximum and minimum values are caculated using the "Statistics Express VI". This VI also provides the indexes of the maximum and minimum values.

   

3. Requirements

  • LabVIEW 2012 (or compatible)

4. Steps to Implement or Execute Code

  1. Configure the parameters of the simulated signal
  2. Run the VI
  3. A sine signal with noise and the maximum and minimum values of this signal will be displayd. The indexes of the maximum and minimum values will be also be displayed.

5. Additional Information or References

 VI Snippet

Snippet.png 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

 

National Instruments
Applications Engineer
NI Prototyping Community

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

Tariff Impact Update Learn more