Example Code

2nd Order Inverse Function Solver

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 the user to find the independent variables for a given dependent input.


Description
This code was developed as an example to find the X values for a given Y.  With user defined discrete inputs, the code will find a polynomial curve, solve for the roots of both the original equation and the given Y input.  The user can then determine which X value they're interested in using.  The coefficients of the line are also output.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Configure the X and Y inputs for discrete data
  2. Set the Y input
  3. Click run and view the results

 

Additional Information or References
VI Block Diagram

 Block Diagram.png

 

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

 

Bobby Breyer
Applications Engineer
National Instruments

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