A method for controlling an electric motor using a variable speed drive, VSD, and determination of at least two motor parameters, wherein the at least two motor parameters are inherent, constant parameters of the electric motor and comprise a combination of both electric and mechanical motor parameters, the method comprising: - applying, by the variable speed drive, one or more electric command to the electric motor such that the electric motor runs at one or more determined operating point; - determining, by the variable speed drive, for each determined operating point, a real operating parameter (Opr) in the electric motor, based on measurements of the variable speed drive at the operating point, the real operating parameter (Opr) for example including at least one of a motor current, a torque, a speed, and an acceleration; - determining, by the variable speed drive, for each determined operating point, an estimated operating parameter (Ope) in the electric motor based on initial estimated values of motor parameters of a representation model of the electric motor and on the electric command associated to the operating point, wherein the representation model comprises one or more equation representing a difference between initial estimated values of one or more motor parameter and real values of the one or more motor parameter at an operating point of the electric motor and one or more equation allowing determining a theoretical response of the electric motor at an operating point based on the initial estimated values of the one or more parameter; - computing, for each determined operating point, an operating difference (Opd) based on the real operating parameter (Opr) and on the estimated operating parameter (Ope), - determining, by the variable speed drive, for each determined operating point, a value of operating coefficients (Oc), based on the operating difference (Opd) and on the representation model of the electric motor, wherein the operating coefficients (Oc) represent a difference between estimated values of motor parameters and real values of the motor parameters at the operating point; - determining, by the variable speed drive, a refined estimated value of at least two motor parameters of the representation model based on the operating coefficients (Oc) determined at each operating point and on the representation model; - determining, by the variable speed drive, values of a set of VSD parameters based on the refined estimated value of the at least two motor parameters, the set of VSD parameters comprising at least two VSD parameters. - applying, by the variable speed drive, one or more electric command to the electric motor such that the electric motor runs at one or more determined operating point; - determining, by the variable speed drive, for each determined operating point, a real operating parameter (Opr) in the electric motor, based on measurements of the variable speed drive at the operating point, the real operating parameter (Opr) for example including at least one of a motor current, a torque, a speed, and an acceleration; - determining, by the variable speed drive, for each determined operating point, an estimated operating parameter (Ope) in the electric motor based on initial estimated values of motor parameters of a representation model of the electric motor and on the electric command associated to the operating point, wherein the representation model comprises one or more equation representing a difference between initial estimated values of one or more motor parameter and real values of the one or more motor parameter at an operating point of the electric motor and one or more equation allowing determining a theoretical response of the electric motor at an operating point based on the initial estimated values of the one or more parameter; - computing, for each determined operating point, an operating difference (Opd) based on the real operating parameter (Opr) and on the estimated operating parameter (Ope), - determining, by the variable speed drive, for each determined operating point, a value of operating coefficients (Oc), based on the operating difference (Opd) and on the representation model of the electric motor, wherein the operating coefficients (Oc) represent a difference between estimated values of motor parameters and real values of the motor parameters at the operating point; - determining, by the variable speed drive, a refined estimated value of at least two motor parameters of the representation model based on the operating coefficients (Oc) determined at each operating point and on the representation model; - determining, by the variable speed drive, values of a set of VSD parameters based on the refined estimated value of the at least two motor parameters, the set of VSD parameters comprising at least two VSD parameters.