Example Code

Identifying a Subset of a Function on a Graph Using 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 example explores how to define (and if need be extract) a section of a sine-wave.


Description
Analysis of a function often involves plotting the function, and in many cases, identifying critical points on a function. This example explores how to define (and if need be extract) a section of a sine-wave. For this example the goal is to identify any section(s) which represents a contiguous rise or fall from the value 4 to -4 in one full period of a sine wave of amplitude 5. This might be useful if we are interested in studying areas of the function which are moving quickly (since near the peaks and valleys of a sinusoid, the derivative drops off to zero).


Requirements

LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

Run the program

 

Additional Information or References
VI Snippet

3-369.png

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

Sanjay C.
Embedded Software Product Manager| National Instruments

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