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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

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

ddenholm
6-Contributor

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:

Better go to SI

not P/MW but P/W

ddenholm
6-Contributor
(To:ddenholm)

Thanks... That does it.

--Doug

Top Tags