05-11-2020 03:02 PM
Haven't looked in detail, but see one problem.
You do a Min/Max decimation and then interleave the Min and Max values. Look at the original links I posted, besides getting the Min and Max, the VIs get the indices of those values. Right now your array is always Max,Min,Max,Min, ..., when in reality it may be Max,Min, Min, Max, Max, Min. (The original VI will switch those if necessary.)
Look at those VIs again.
Yes it is work, but you will learn and get better each time you modify.
Cheers,
mcduff
05-11-2020 03:12 PM
That's a great point. I didn't look into it that far, I figured at that scale you wouldn't be able to tell the difference between if it was the min or max element that was first (or even if that really mattered since you're taking only 2 out of potentially thousands of points).