The device (10) has a function conductor comprising elongated electrical function conductor to transmit therapeutic signals or diagnostic signals. An electrode pole (22) is connected to the function conductor to deliver electrical current to surrounding tissue. A sensing device is connected to field-generating electrode pole and potential-sensing electrode pole. A control device is connected to sensing device to evaluate output signal generated by sensing device, and to control the medical device as function of electrical potentials detected by sensing device.