How can I extract specific measurement data from a TimeWave?

How can I extract specific measurement data from a TimeWave using a procedure?
I have a TimeWave and a wave containing measurement data. I need to extract the measurement data at specific times, which are listed in a separate wave. What is the best way to achieve this using a procedure?

Thanks for your help.

 

Example Daten (1.2 KB)

You should probably use FindLevel

DisplayHelpTopic "FindLevel"

make/N=(numpnts(wSearch)) wFoundValues
wFoundValues = wValue[BinarySearchInterp(wTime, wSearch)]