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 called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Units are not compatible

MK_9124307
1-Newbie

Units are not compatible

Hi!

 

I have a very bizarre error that I just can't solve.

 

See the following:

MK_9124307_0-1681291661517.png

This gives me the "units are not compatible error" if I use t_uZkplus.max.

 

If I put the solution for t_uZkplus.max manually in the lower line it works just fine:

MK_9124307_1-1681291735262.png

I really don't understand what is going on here. Does anybody have an idea?

1 ACCEPTED SOLUTION

Accepted Solutions

Looks indeed strange, but as Fed already wrote, without seeing the sheet itself we can only stab in the dark.

So if possible you should attach the worksheet or a simplified, down-stripped version of it showing the same behaviour.

 

You may use the error tracing - maybe knowing the line in the function u.Zkplus_Int( ) which throws the error can help in finding out what happens.

Werner_E_0-1681306041504.png

 

A significant difference between real Mathcad, where your original file stems from, and Prime is, that Prime is not using SUC (static unit checking. This means the something like 0 + 12 V = 12 V, which works OK in Mathcad, may (must not!) fail in Prime because Prime often needs a unit even if the value is zero.
The converter is not fixing situations like that and it can be quite hard to find these stumbling blocks in a converted sheet.

It doesn't look to me that this could be the cause in your case, but can't say for sure without seeing the sheet.

View solution in original post

5 REPLIES 5

Without the sheet to investigate, we can only guess.

 

I suspect you have run afoul of the dreaded label issue.  Prime may not always recognize what each .variable unit is.  Check 

Fred_Kohlhepp_0-1681297218872.png

 

Unfortunately it is already labeled as a variable.

 

What is even more weird is the fact that it depends on the value of t_uzkplus.max.

 

As in the opening post it doesn't work if the result is 6.667 ms (well it works with 6.667 ms if I manually copy the result into the function):

MK_9124307_0-1681297523311.png

 

But it does with a different value:

MK_9124307_1-1681297571784.png

 

EDIT: I don't know if it's important but that sheet was converted from an older version of Mathcad where everything worked fine...

 

Looks indeed strange, but as Fed already wrote, without seeing the sheet itself we can only stab in the dark.

So if possible you should attach the worksheet or a simplified, down-stripped version of it showing the same behaviour.

 

You may use the error tracing - maybe knowing the line in the function u.Zkplus_Int( ) which throws the error can help in finding out what happens.

Werner_E_0-1681306041504.png

 

A significant difference between real Mathcad, where your original file stems from, and Prime is, that Prime is not using SUC (static unit checking. This means the something like 0 + 12 V = 12 V, which works OK in Mathcad, may (must not!) fail in Prime because Prime often needs a unit even if the value is zero.
The converter is not fixing situations like that and it can be quite hard to find these stumbling blocks in a converted sheet.

It doesn't look to me that this could be the cause in your case, but can't say for sure without seeing the sheet.

Thanks for that tip! I didn't know about that feature. I was able to find the source of the problem. 

 

MK_9124307_0-1681306491278.png

Before I had 0 instead of 0 s and that gave me the unit error. Now everything works fine.

 

Thanks again!


@Werner_E wrote:

Looks indeed strange, but as Fed already wrote, without seeing the sheet itself we can only stab in the dark.

So if possible you should attach the worksheet or a simplified, down-stripped version of it showing the same behaviour.

 

You may use the error tracing - maybe knowing the line in the function u.Zkplus_Int( ) which throws the error can help in finding out what happens.

Werner_E_0-1681306041504.png

 

A significant difference between real Mathcad, where your original file stems from, and Prime is, that Prime is not using SUC (static unit checking. This means the something like 0 + 12 V = 12 V, which works OK in Mathcad, may (must not!) fail in Prime because Prime often needs a unit even if the value is zero.
The converter is not fixing situations like that and it can be quite hard to find these stumbling blocks in a converted sheet.

It doesn't look to me that this could be the cause in your case, but can't say for sure without seeing the sheet.


That was indeed the problem.

Top Tags