Example Code

Calculate Digits of Mathematical Constant e 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

Download All

Overview

This example will calculate the decimal digits of the mathematical constant, e.

 

Description

This program iteratively calculates the decimal digits of the constant e. You can explore the full functionality and algorithm in the block diagram of the program attached.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Enter the desired number of decimal digits you wish to calculate.
  2. Run the program.
  3. Press the Stop button if you wish to abort execution.
  4. Once completed, the program returns the values in a string.

 

Additional Information or References

Block Diagram:
capture.JPG

 

 

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

 

-Jim B
Applications Engineer, National Instruments
CLD, CTD

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