From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NaN's, 1D array sort, and LabVIEW versions

Hey all,

Sorting a 1D array of dbl's containing NaN's under LabVIEW 6.0.2 returned... well, let's just call them, entertaining results.

Doing the same under LV 7.1 returns a correctly sorted array, with the NaN's appended at the end of the sort.

Since I have little desire to test all possible cases, my question is this: Does anyone know if this new sorting behavior is stable?

Thanks all!

Joe Z.
0 Kudos
Message 1 of 3
(2,193 Views)
Hi Underflow,

Yes, I believe this behavior was corrected in LV 6.1. NaNs were not handled "correctly" by the Sort 1D Array.vi until this fix.
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 3
(2,162 Views)
Thanks Travis!
0 Kudos
Message 3 of 3
(2,155 Views)