ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
05-05-2009 03:12 PM
05-05-2009 04:11 PM
05-05-2009 04:35 PM
05-05-2009 05:02 PM - edited 05-05-2009 05:03 PM
Assuming the x-array is sorted low-to-high, you would use "Threshold array" on your x-array and then use the resulting fractional index to use "interpolate 1D array" on the y-array.
Here's an very old example:

If your xy data is more complicated (e.g. containing loops), things are no longer simple, because there are possibly zero to multiple y-values for a given x.
05-05-2009 05:15 PM - edited 05-05-2009 05:16 PM
altenbach wrote:Assuming the x-array is sorted low-to-high, you would use "Threshold array"
Corollary: If it's not, the Threshold 1D Array VI (Mathematics -> Interpolation & Extrapolation) could be used as X does not need to be monotonic for that VI, though it's a bit annoying in that you have to feed your X value as an array even if you're just interested in 1 value.
05-06-2009 02:23 AM