update electrical_pulse