Hi,
Originally,
altenbach addressed 2 problems and I was just commenting on the 2nd one. His answer to the first problem is also vital -- using the 2-input (4-quadrant) inverse tangent function rather than the 1-input (2-quadrant) one.
I just whipped up a quick example for you. It generates a single cycle of a sine wave and a cosine wave. Then it concatenates several cycles worth of each, but some of the sine waves are inverted. This produces two direction reversals. Next, gaussian noise is added. Finally, the inverse tangent and unwrap functions are called. You can choose either the (correct) 2-input or the (incorrect) 1-input inverse tangent.
Hope this helps to show what to do, and allows you to exper
iment with sensitivity to signal-to-noise ratio.
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.