I need to implement a time-varying resistor for one of my studies. The Resistance must be of the form R=R0+Rm*sin(W*t), with R0-Rm>0. I am planning to implement this with a digital potentiometer (controlling it with a sinusoidal signal). I haven't tried this yet, and I am wondering whether this is a right way to implement this.