You may have to fritter around with it to get it to sweep properly in the downward direction. I can't see any issues with upward sweep, but the down sweep presumes a starting point, which in turn presumes something about what voltage/current to feed the LED in the optoisolator so that it "begins" from the optimum starting point.