Totally untested, but for your graph, this is how you would do it:
With interp, you have to work with 2 inputs. The current value ( which must be a real time sample ), and the target value, which we have calculated here.
Give it a go
EDIT: Incidentally, I think you might have your axes screwed up. I actually tried running it, and then changed it to this: