LoveDSP, I must say you are genius.
This is very close to what I want. One thing I did not explain to you is that usually when we say a response of a sensor, it is defined as (Vt-Vo)/Vo, here Vt is your signal, and Vo is your baseline. So the final result should be a percentage number.
You use linear fitting to fit the baseline. however, I don't know if this works for other data I have. They have wired baseline drifting, up and down, nothing near a line. I attached one set of this kind of data. Could you try it to see if your vi still works? Or do you think it is better to use your first vi, a polynomial fitting to do the baseline?
I don't have the signal processing kit. But I can check with my collegues, they might have.
Message Edited by bopqod on 03-22-2005 10:52 AM
Message Edited by bopqod on 03-22-2005 10:52 AM