Im using a VI to show the effects of sensor drift on the output signal of that VI. I have a set of pressure values that Im scaling according to the following equation:
Y = X + counter*0.01
where Y is the scaled signal and X is the original pressure value, counter is the data point count. On obtaining the scaled values i pass this to a smoothing filter and then trigger the signal to obtain min and maximum data points at every 100 sample points.
My problem , is that while plotting the scaled smoothing signal output, I have a straight line that starts from the last data point and moves down to 934-935 mmHg. This straight line, is not a part of the waveform, it appears at the last data point´, and moves with each subsequent data point. This line pulls down the minimum value of the triggered signal to 934 steadily and hampers the signal processing.
Why does this straight line appear? Any ideas?
Hope I was clear. Attached is a screenshot.
Thanks and regards,
Prakruthi