You should be able to use the AmplitudePhaseSpectrum method that is included in the NationalInstruments.Analysis.SpectralMeasurements namespace. If you want to compute the difference between two waveforms just make two calls to AmplitudePhaseSpectrum and then subtract the differences of the two phase arrays that are returned.