 cbfsystems
		
			cbfsystems
		
		
		
		
		
		
		
		
	
			12-19-2007 03:24 PM
 smercurio_fc
		
			smercurio_fc
		
		
		
		
		
		
		
		
	
			12-19-2007 03:32 PM
 
					
				
		
 ShotSimon
		
			ShotSimon
		
		
		
		
		
		
		
		
	
			12-19-2007 03:39 PM
 Matthew_Kelton
		
			Matthew_Kelton
		
		
		
		
		
		
		
		
	
			12-19-2007 04:05 PM - edited 12-19-2007 04:06 PM
@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"?
 smercurio_fc
		
			smercurio_fc
		
		
		
		
		
		
		
		
	
			12-19-2007 04:27 PM
04-13-2008 09:15 PM
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,
 noli
		
			noli
		
		
		
		
		
		
		
		
	
			05-01-2009 02:03 PM
Hi,
Is there any update on this bug? The square primitive seems to be still incorrectly handling units as of Labview 8.6
Thanks
05-04-2009 12:09 PM
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,
 GregSands
		
			GregSands
		
		
		
		
		
		
		
		
	
			03-01-2010 04:21 PM
 psmorris
		
			psmorris
		
		
		
		
		
		
		
		
	
			10-24-2013 09:47 AM
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