A question about Units in MathCad Prime 2.0
- June 10, 2012
- 4 replies
- 5536 views
I'm being "lazy" and using MathCad Prime (as I used MathCad) as a very souped-up calculator. I'm working with a 16-bit Digital-to-Analog Converter that has a range of ±10v, so I defined a unit DAU (D/A Unit) as 32768/10, and gave it the units of 1/V (where "V" is the units Volts).
The signal I'm sending through the D/A is the position of a sled, controlled by a stepper motor, where 8000 "steps" corresponds to 4.92 inches of travel. So I define a SU (Stepper Unit) as 4.92/8000 in (where "in" is the unit Inches).
Finally, I want to have the full range (10V) of the D/A converter correspond to 36" of travel. So what is the conversion factor from Stepper Units to D/A units?
Easy -- it is 1 SU times 10V/36 in times DAU. It does, indeed, give me the right answer, but the units show up as 1/V times V, i.e my Volts units do not cancel. I'll attach a file to illustrate what I mean.
Why don't the units cancel? Does explicitly declaring a "reciprocal unit" confuse MathCad? Is there a workaround that fixes this problem? Or is it a bug?

