@smercurio_fc wrote:
The Square primitive (as other primitives) only operates on the number, not the unit. This isn't a bug, but just the way it works, and it makes sense since some operations don't translate for physical units. For example, let's say you use the Square Root. What's the proper unit for the square root of the unit "meter"?
I'm surprised this post was missed by us until now! My apologies.
This behavior is in fact a bug and is being addressed by R&D through Corrective Action Requests #44236 and #47360.
The current work around for the square primitive would be to use a multiply primitive. Using the sqrt primitive would use a little more creative programming to get around at this point. I tried using a property node to just change the units once the calculation had been performed but it throws an error. My best idea at this point would be to perform the sqrt operation and then multiply by 1 afterwards (using this moment to introduce the needed units to produce the correct end result).
I'll keep an eye on this thread in case anybody has additional questions,
Hi,
Is there any update on this bug? The square primitive seems to be still incorrectly handling units as of Labview 8.6
Thanks
Hi noli,
We don't release the status of CARs until we have finallized the release of products. At that time we will include in the README what CARs have been resolved in that release. As of 8.6.1 these CARs have not been fixed.
Best Regards,
three and a bit years on, this is still broken...
interesting that the sqrt function does work, although if you try:
"united array-->square function-->sqrt function"
You get a broken wire between the square function and the sqrt function. If you use the work around (wire the array into both sides of the multiply primitive) then the sqrt function works fine.
So yeah, still something broken in here then!
Paul