Drift in data acquisition toolbox legacy interface
2 views (last 30 days)
I've been having an issue with data that I collected with Matlab's legacy DAQ interface. This is with 32-bit Matlab 2008b run on a Windows 7 machine, pulling data from a National Instruments PCI-6115 board.
The issue is this: I've noticed that non-zero data will drift down to zero. If I was to give my board a steady non-zero voltage (say hooking it up to a battery with a switch that I turn on) the signal looks like a decaying exponential, with a time constant of 64.1 ms. Given a rectangle function, it's fairly clear that the zero point has moved as when the voltage is switched off the "zero" is now some point below zero. Rewriting the code with the session based interface in 2011b (64 bit) got rid of this drift, though the session based interface currently has its own issues (such as no control of DIO).
I imagine that post-processing this is not too terrible (go step by step, and for every non-zero point calculate how much it would drift down the next point and correct), but I wanted to see if anyone else has had trouble with this and if there was a good way to resolve this issue in some other fashion.
Thank you, Paul