Hi Yatin,
Thanks for the response, I have sorted the problem.
I was tring to plot the response of a machine to it's input signal. I am now simply using the generated sinewave that is being written to the buffer and plotting against actual displacement (from a linear encoder). I plot the buffer values first and then overlay the feedback data.
s