The Ramp by Samples is the one I have used. Once you have the array of ramp voltages you can play through it in either direction to ramp up or down. And yes you will need a loop because you aren't outputting a waveform, but discrete values one at a time.
Mike...