I have converted a MathCAD file from an older version of MathCAD (where it worked beautifully) to Prime 2.0. In the process of converting the primary program that calls multiple sub-programs stopped working. I thought I had successfully fixed all of the errors, but now the whole program is outlined in red and MathCAD indicates that there is an error "Unknown Error: mpl%_exception". Does anyone know what this means and how I can fix it? It seems as if other errors are the result of large programs running in MathCAD. Is that the case here?
Solved! Go to Solution.
Sorry. After experimenting I edited my reply, which might have led to confusion. Replace the row vector with a large number of variabe names on the left of the assignment operator with a single variable name. It doesn't matter what the variable name is. I used "xxx" only because it wouldn't conflict with any existing variable names in the worksheet.
Amanda Rock wrote:
Unfortunately I cannot post the worksheets.
So w/o the sheet I think that no help is to be expected here. I had that unknown multiplication error, too, but don't remember what the cause was and how I fixed it. Guess there are a myriad of possibilities.
As its an unknown error its a sign how unfinioshed Prime still is. That kind of errors should not pop up, so I would call it a bug and think you should report it to PTC. The will need the sheet, too, but if you log a case there is the possibility for a non-disclosure agreement.
Did you try and copy the contents of the converted sheet onto a new sheet? I have had certain features not work when first converting the worksheet but pasting the contents on a new worksheet was successful.
I hope this helps.
There's no way to know without the worksheet, and probably no way to know even with it. The best solution is to stick with MC15 for as long as possible. At some point it will no longer be possible, but hopefully (admittedly, not that great a hope for my part) Prime will then be acceptable as a solution. If not, it will become a bitter choice between accepting the inadequacies of Prime or switching to another package (e.g. Mathematica) that is expensive and / or has it's own limitations, and throwing away all the work done in Mathcad (for me, that is almost two decades worth of worksheets).
No luck with the copy/paste. Thanks for the suggestion.
Thanks everybody for the input. It looks like I may just be sticking with M15. Everything seems to function appropriately there.
Ok. Attached is the file in question. The program I'm having trouble with is the Morphologic Time Loop (page 27), which calls all of the previous functions. There was a problem with the Evolve sub-program (pg. 24), which I know about because the Morphologic Time Loop would run until I fixed the error (undefined variable sdiv). No it won't run at all. Let me know what you think.
If you put an arbitrary variable name to the left of the assignment (I used "xxx") so that it only has one variable name the error message goes away. There's still an error, but it's an error about incompatible units. Maybe the large number of variable names is the problem, or maybe it's one particular one that's the problem.
I'm not sure I understand what you are explaining. Are you saying to replace the entire bottom row with just "xxx"? When I do that I get an undefined variable error. When I leave only 1 of the actual defined variables as the bottom line I get the same mpl_exception error.