cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle Input Expression to an Excel Component where the variable has units?

SOLVED
ddenholm
5-Regular Member

How to handle Input Expression to an Excel Component where the variable has units?

I understand that the Excel component does not "know" about units of measure internally.

But if want to enter the value for a variable into the Excel component in a particular set of units, how do I do it?

For example, I have a variable "Power" in the MCP 3 which uses units of MW, e.g.:

Power := 10 MW

If I evaluate Power in MCP 3, by default, I get the following:

Power = (1 x 10^7) W

And 1 x 10^7  is also the value I get in the Excel Component if I create an Input Expression and set it equal to "Power".

But, if I want to have the value in the Excel to be 10 (i.e. MW), how do I make that happen? Is there some way to implement the Input Expression so that I get the value in the correct units?

Thanks in advance.

--Doug

1 ACCEPTED SOLUTION

Accepted Solutions

Divide by the units you wanted:

View solution in original post

3 REPLIES 3

Divide by the units you wanted:

View solution in original post

Better go to SI

not P/MW but P/W

ddenholm
5-Regular Member
(To:ddenholm)

Thanks... That does it.

--Doug

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."