12-09-2010 09:52 AM
Hi all!
Stumbled on som weird behaviour of the In Range and Coerse primitive. If I run the the attached code (LV2010, no patch) on Linux Ubuntu, the behaviour changes when the array size gets bigger than 15. Below 15, output is array of NaN, above 15, output is array of -inf.
Can you reproduce this on your platforms (as mine is not supported)? Has this changed with a patch?
Tanks for any help.
//Martin
12-09-2010 09:59 AM
Confirmed on Mac OS X 10.5.8, LV 2010 10.f2
Lynn
12-09-2010 10:07 AM - edited 12-09-2010 10:08 AM
Confirmed on Win XP, LV 2010f2
Actually, what I see is 15 elements and below, all elements remain NaN. For 16 and above, the zeroth element is coerced to 5, the remaining elements are coerced to -Inf.
12-09-2010 10:15 AM
I see something similar. For odd values of dimension size >15 the last element is 5 but the Coerced? output is still false.
Lynn
12-09-2010 10:20 AM - edited 12-09-2010 10:27 AM
Very Very Odd.
When I first ran the VI, I swear the 5 was in the top position. I've since opened the VI again (I closed the VI after I finished replying earlier) so I could see about the odd vs. even # of elements, and I'm now seeing what you are seeing Lynn. So far I haven't been able to replicate what I saw earlier with the 5 in the first position.
UPDATE: LV 2009SP1 (also on WinXP) does not show this behavior.
12-09-2010 10:22 AM
Same behaviour on Windows XP. But why would you want to create an array of NaN and then try to coerce between 5 and neg infinity?
12-09-2010 11:55 AM
Anything dealing with arrays of size 16 or greater is almost certainly related to the SSE implementation introduced in 2010. I've filed CAR 277565 on this.
Jim
12-10-2010 02:11 AM - edited 12-10-2010 02:12 AM
Thanks everyone.
tbob: A bug in my system caused my measurements to become NaN once in a while. This was only noticed as a blank in my curves in 8.6, but this bug in 2010 made me find my own bug.
//Martin
12-11-2010 02:24 AM
Confirmed on Windows 7 and LabVIEW 2010.
Here's a little video showing the bug:
Ton