Example Code

Retirement Calculator 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
Implement a Retirement Calculator to determine if you are saving enough to meet your retirement goal.


Description
Calculator considers various factors, including current retirement savings, current compensation, future earning potential, inflation, savings contribution rates, current age, expected retirement age, life expectancy, return rates on savings, and retirement costs, to calculate retirement savings balance, investment returns, savings contributions, and savings withdraws per year. Descriptions for the various factors can be in the tip strip. Calculator does not consider benefits from a pension or social security.  Data from calculator can be viewed in the program itself and/or exported to a text file.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the VI
  2. Change variables to match your circumstances and expectations
  3. Calculator will execute each time a variable is changed
  4. Select if you would like the data plotted in the program itself and/or exported to a text file. Detailed results from calculator are located on the second tab.
  5. Press the stop button to stop the calculator

Additional Information or References

VI Block Diagram

 5-317.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.