Hi fco,
well, you could try to get the maxima of the integrated curves in each period of the signal and use this to correct the drift - it's not that easy at all
😞Btw. I would try to stick with simple datatypes and get rid of this back- and forward conversions to/from dynamic datatype... (Your vi will be much smaller by doing the same work [maybe] faster.)
Message Edited by GerdW on 03-21-2007 10:44 AM
Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019