Why are the variable units in the Calculation Editor different than the units chosen for my calculated variable?

QUESTION

 

Why are the variable units in the Calculation Editor different than the units chosen for my calculated variable?   For example, I choose units of mm for both thickness and width and units of mm2 for my calculated variable Area yet the Calculation Editor in TestSuite is showing m2 instead of mm2 (Figure 1).  

 

 

Figure 1 – Different units between user defined units and in the Calculation Editor window

 

ANSWER

 

Although the operator can use the variable display unit mm2, the Calculation Editor is showing m2 because TestSuite uses m2 internally as the unit for area when performing calculations.  The software knows to convert between m2 and mm2.

 

If you set the dimensions on all the variables, signals, and calculation parameters properly, and not put constants directly in the calculations, everything works out properly.  You must take precaution when putting constant values into calculations.  You must think carefully about what the units are of those constants.  This is why the recommendation is to NOT put constants into calculations.  Rather, create variables or calculation parameters for the constants, and set the dimensions properly on those objects.

 

K
Keary is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.