A device and algorithm for controlling an autonomic function in an individual. In particular, a controller device that utilizes physiological measurements (such as blood pressure) to regulate spinal cord electrical stimulation to stabilize blood pressure. A control interface and algorithm for controlling an autonomic function in a subject. In particular, an algorithm that utilizes physiological measurements (such as blood pressure) to regulate spinal cord electrical stimulation to stabilize blood pressure.