Skip to main content
8-Gravel
February 22, 2024
Solved

Comparison results vs requirements.

  • February 22, 2024
  • 1 reply
  • 1318 views

Hello.

Im using Mathcad prime 9.0.0.0

need to create an analysis in which im comparing my results with my requirements.

need some kind of function to do that but not really sure where to start or what to look for.

 

something like 

my maximum voltage calculated is 16V, but per requirement im allowed to go up to 18V

so want a function that compare this 2 values and show them like:

"Result: 16V  -  Margin: 12.5%  -  PASS"

 

 

 

Best answer by Werner_E

Not sure if thats what you are looking for, but here is a function which checks if given value is within a given range of allowance and returns either the string "PASS" or "FAIL!".

Werner_E_0-1708634753568.png

 

On contrary to old Mathcad we cannot (yet?) format depending on the result or use scripted components. So the only way to return results which also are different in color, etc. is to use an Excel component. Would be to much overkill for me but it seems to be the only way so far if you want to see different colors (font size, style, etc.) depending on the result of the check.

Werner_E_1-1708634917460.png

Prime 9 sheet attached

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
February 22, 2024

Not sure if thats what you are looking for, but here is a function which checks if given value is within a given range of allowance and returns either the string "PASS" or "FAIL!".

Werner_E_0-1708634753568.png

 

On contrary to old Mathcad we cannot (yet?) format depending on the result or use scripted components. So the only way to return results which also are different in color, etc. is to use an Excel component. Would be to much overkill for me but it seems to be the only way so far if you want to see different colors (font size, style, etc.) depending on the result of the check.

Werner_E_1-1708634917460.png

Prime 9 sheet attached

 

8-Gravel
February 23, 2024

Great!!

this is actually very helpful!

i guess i could even place the Check function for all my results at the end of the document and that would be easier to show like a summary matrix.