Example Code

Body Mass Index Calculator for 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

Description

1. Overview

This example shows how to calculate the BMI, which stands for body mass index: a measure of body fat based on height and weight that applies to adult men and women.

 

2. Description

The body mass index (BMI) or Quetelet index is a value derived from the mass (weight) and height of an individual. The BMI is defined as the body mass divided by the square of the body height, and is universally expressed in units of kg/m2, resulting from mass in kilograms and height in metres.

Underweight = <18.5
Normal weight = 18.5 - 24.9
Overweight = 25 - 29.9
Obese = >30

 

3. Requirements

  • NI LabVIEW Base Development System 2014 (or compatible).

 

4. Steps to Implement or Execute Code

  1. Download and open the VI "Body Mass Index Calculator LabVIEW 2014 NIVerified.vi"
  2. Run the VI.
  3. Adjust your Weight and Height.
  4. Click Stop when finished.

 

5. Additional Information or References

Body Mass Index Calculator.PNG

 

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines.**

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

Comments
Doug_L._Bear
Active Participant
Active Participant
on

there is nothing here

Doug Farrell
Solutions Marketing - Automotive
National Instruments

National Instruments Automotive Solutions