This document discusses, among other things, a system and method for
modulating an energy level of a sleep therapy stimulus signal for a
patient. A stimulus driver signal can be provided to a closed loop
neuromodulator using a stimulus signal and a stimulus duration signal,
and an energy level of the stimulus signal can be adjusted using a
selected escalation envelope function.