Try this example for continuous analog output, modify the waveform calculator to superimpose your ramp and 10Hz to 40Hz signal. This VI keeps placing new data in the output buffer while it is being written, it keeps up and maintains phase for a continuous waveform over a long time. You can create your large buffer in a file and read parts of it in asa needed or calculate the waveform on the fly.
..
C:\Program Files\National Instruments\LabVIEW 7.1\examples\DAQmx\Analog Out\Generate Voltage.llb\Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi