A device for generating a control signal (Is; Vs) for an electrical system, the generation device comprising: - an input for an input signal (Vc; Ic) originating from the electrical system, the input signal (Vc; Ic) being an analog signal representative of a voltage, of a current, respectively, - an output for the control signal (Is; Vs), the control signal (Is; Vs) being an analog signal representative of a current, of a voltage, respectively, the control signal (Is; Vs) having a first component and a second component, - an analog block connected to the input and to the output of the generation device, the analog block comprising an electrical circuit comprising a passive analog component having a first passive characteristic impedance, a voltage, current, respectively, a measuring component and a current, voltage, respectively, generator, - a digital block comprising at least one digitally controllable component, - an analog-digital converter connected between the analog block and the digital block, and - a digital-analog converter connected between the analog block and the digital block, the passive analog component of the electrical circuit being configured so as to generate the first component of the control signal (Is; Vs) and the generator of the electrical circuit being configured so as to generate the second component of the control signal (Is; Vs), the electrical circuit being configured so as to sum the first and the second component that are generated in order to obtain the control signal (Is; Vs), the analog-digital converter being configured to convert, into digital, a measurement of the input signal (Vc; Ic) done by the measuring component of the analog block to obtain a converted input signal (S E-C), the controllable component of the digital block being configured to generate a digital output signal (S s-num) as a function of the converted input signal (S E-C) and a model (Scr) of a digital controller (Sc) connected to a passive digital component having a second passive characteristic impedance (r), the value of the second characteristic impedance (r) being chosen as a function of the value of the first characteristic impedance, the digital-analog converter being configured to convert, into analog, the digital output signal (S s-num) to obtain a control of the generator, the second component of the control signal (Is; Vs) generated by the generator being a function of the control obtained from the digital block. - an input for an input signal (Vc; Ic) originating from the electrical system, the input signal (Vc; Ic) being an analog signal representative of a voltage, of a current, respectively, - an output for the control signal (Is; Vs), the control signal (Is; Vs) being an analog signal representative of a current, of a voltage, respectively, the control signal (Is; Vs) having a first component and a second component, - an analog block connected to the input and to the output of the generation device, the analog block comprising an electrical circuit comprising a passive analog component having a first passive characteristic impedance, a voltage, current, respectively, a measuring component and a current, voltage, respectively, generator, - a digital block comprising at least one digitally controllable component, - an analog-digital converter connected between the analog block and the digital block, and - a digital-analog converter connected between the analog block and the digital block, the passive analog component of the electrical circuit being configured so as to generate the first component of the control signal (Is; Vs) and the generator of the electrical circuit being configured so as to generate the second component of the control signal (Is; Vs), the electrical circuit being configured so as to sum the first and the second component that are generated in order to obtain the control signal (Is; Vs), the analog-digital converter being configured to convert, into digital, a measurement of the input signal (Vc; Ic) done by the measuring component of the analog block to obtain a converted input signal (S E-C), the controllable component of the digital block being configured to generate a digital output signal (S s-num) as a function of the converted input signal (S E-C) and a model (Scr) of a digital controller (Sc) connected to a passive digital component having a second passive characteristic impedance (r), the value of the second characteristic impedance (r) being chosen as a function of the value of the first characteristic impedance, the digital-analog converter being configured to convert, into analog, the digital output signal (S s-num) to obtain a control of the generator, the second component of the control signal (Is; Vs) generated by the generator being a function of the control obtained from the digital block.