LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using changing values from velocity to use in an equation

HI, i am a beginner in Lab view and i am trying to program a calorimeter using the following formula

 

Total Calories Burned = Duration (in minutes) x (MET x 3.5 x weight in kg)/200

 

what i wanted to ask is how do i use the varying velocity to define what MET number i shud use

 

TheMET values for running are as follows:
5.5 mph, MET = 18
6 mph      MET = 16
6.5mph    MET = 15
7mph       MET = 14
7.5 mph,   MET = 13.5
8 mph      MET = 12.5
8.5 mph     MET = 11.5
9 mph       MET = 11
10 mph,     MET = 10
11.5 mph    MET = 9
12 mph ,    MET = 8

 

i have tried case structures and got stuck

 

your help will be much appreciated

0 Kudos
Message 1 of 2
(1,853 Views)

 


Bayu wrote:

what i wanted to ask is how do i use the varying velocity to define what MET number i shud use


 

Your use the MET value that correspond to the actual speed. If the speed is varying, create a lookup table and do a linear interpolation, for example.

 

(I don't understand why you think you need a case structure, except to deal with the situation where the input is out of range.)

 

What is your raw input data? An array of Speeds at regular time intervals?

0 Kudos
Message 2 of 2
(1,826 Views)