The invention relates to an in-vitro program controller and a control method thereof. The in-vitro program controller comprises a sensor and a processor, and the processor sets the working power of the implantable
nerve stimulator, a temperature early warning value and a temperature upper
limit value greater than the temperature early warning value according to the stimulation parameters; when the movement of the in-vitro
program control instrument is determined at every reference time interval or according to the posture change detected by the sensor, a data reading instruction is sent to the implantable
nerve stimulator so as to read the working power and temperature of the implantable
nerve stimulator; increasing, decreasing or maintaining the transmitting power according to the comparison between the read working power and the set working power; according to the fact that the read temperature is larger than or equal to the set temperature early warning value and smaller than the set temperature upper
limit value, the transmitting power is reduced; and sending a stimulation stop instruction when the read temperature is greater than or equal to a set temperature upper
limit value. According to the invention, the working power, temperature and the like of the implantable nerve stimulator can be monitored and adjusted, so that safe treatment of a patient is ensured.