Real-Time Analysis of a Modified State Observer for Sensorless Induction Motor Drive Used in Electric Vehicle Applications

The purpose of this work is to present an adaptive sliding mode Luenberger state observer with improved disturbance rejection capability and better tracking performance under dynamic conditions. The sliding hyperplane is altered by incorporating the estimated disturbance torque with the stator currents. In addition, the effects of parameter detuning on the speed convergence are observed and compared with the conventional disturbance rejection mechanism. The entire drive system is first built in the Simulink environment. Then, the Simulink model is integrated with real-time (RT)-Lab blocksets and implemented in a relatively new real-time environment using OP4500 real-time simulator. Real-time simulation and testing platforms have succeeded offline simulation and testing tools due to their reduced development time. The real-time results validate the improvement in the proposed state observer and also correspond to the performance of the actual physical model.


Introduction
The utility of induction motors has risen considerably owing to its integration with power electronic converters, which made variable frequency operation realizable.This, in turn, made the induction motor the workhorse of the industry.Of all the variable frequency control strategies, the vector control or field oriented control principle was the most popular.It provided independent control of torque and flux resulting in fast torque response.The field orientation can be achieved by directly measuring the magnitude and direction of the flux by means of flux sensors or hall effect sensors in the machine (Direct Vector control) or it can be imposed indirectly by a slip frequency component from the rotor dynamics (Indirect Vector control).The latter was more feasible as it did not require the use of additional flux sensors that would occupy additional space and cost.The indirect vector control principle is shown in the phasor diagram expressed as steady state direct current (DC) quantities in Figure 1.
flux is obtained.However, the indirect vector control implementation required the utility of a shaft speed encoder to sense the rotor speed, which was processed along with the speed command to generate the reference torque request for vector control.The presence of the shaft speed encoder implies additional electronics, cost and mounting space.Therefore, to eliminate the shaft speed encoder, the speed estimation techniques were used.The speed was estimated from either the terminal quantities of the machine or from its rotor saliency.However, speed estimation from the machine model was easier to implement, occupied less computational space and were most effective.Considerable research over the past two decades focused primarily on sensorless control of induction motor [1], with special emphasis on estimation from the machine model [2].The state estimation schemes are shown in Figure 2.During the earlier stages, extended kalman filter (EKF) based estimators [3][4][5] were widely used for speed estimation, but they give accurate results only if the system dynamics are linearized and had an inherent disadvantage of a high sampling frequency and were computationally expensive.Estimators based on model reference adaptive systems (MRAS), extended luenberger observers (ELO) and sliding mode observers (SMO) [6,7] had a wider utility and were more extensively used owing to ease of use and flexibility.In addition, several configurations varying from lower order to higher order observers, as well as integration of variable structure or artificial intelligence could be developed from the MRAS.All the model based schemes were sensitive to variations or incorrect settings of parameters.By decoupling the induction motor at synchronously rotating reference frame, and forcing the direct axis stator current component (field producing) in phase with the rotor flux and orthogonal to the quadrature axis stator current' component (torque producing), independent control of torque and flux is obtained.However, the indirect vector control implementation required the utility of a shaft speed encoder to sense the rotor speed, which was processed along with the speed command to generate the reference torque request for vector control.The presence of the shaft speed encoder implies additional electronics, cost and mounting space.Therefore, to eliminate the shaft speed encoder, the speed estimation techniques were used.
The speed was estimated from either the terminal quantities of the machine or from its rotor saliency.However, speed estimation from the machine model was easier to implement, occupied less computational space and were most effective.Considerable research over the past two decades focused primarily on sensorless control of induction motor [1], with special emphasis on estimation from the machine model [2].The state estimation schemes are shown in Figure 2.
Energies 2017, 10, 1077 2 of 23 flux is obtained.However, the indirect vector control implementation required the utility of a shaft speed encoder to sense the rotor speed, which was processed along with the speed command to generate the reference torque request for vector control.The presence of the shaft speed encoder implies additional electronics, cost and mounting space.Therefore, to eliminate the shaft speed encoder, the speed estimation techniques were used.The speed was estimated from either the terminal quantities of the machine or from its rotor saliency.However, speed estimation from the machine model was easier to implement, occupied less computational space and were most effective.Considerable research over the past two decades focused primarily on sensorless control of induction motor [1], with special emphasis on estimation from the machine model [2].The state estimation schemes are shown in Figure 2.During the earlier stages, extended kalman filter (EKF) based estimators [3][4][5] were widely used for speed estimation, but they give accurate results only if the system dynamics are linearized and had an inherent disadvantage of a high sampling frequency and were computationally expensive.Estimators based on model reference adaptive systems (MRAS), extended luenberger observers (ELO) and sliding mode observers (SMO) [6,7] had a wider utility and were more extensively used owing to ease of use and flexibility.In addition, several configurations varying from lower order to higher order observers, as well as integration of variable structure or artificial intelligence could be developed from the MRAS.All the model based schemes were sensitive to variations or incorrect settings of parameters.During the earlier stages, extended kalman filter (EKF) based estimators [3][4][5] were widely used for speed estimation, but they give accurate results only if the system dynamics are linearized and had an inherent disadvantage of a high sampling frequency and were computationally expensive.Estimators based on model reference adaptive systems (MRAS), extended luenberger observers (ELO) and sliding mode observers (SMO) [6,7] had a wider utility and were more extensively used owing to ease of use and flexibility.In addition, several configurations varying from lower order to higher order Energies 2017, 10, 1077 3 of 23 observers, as well as integration of variable structure or artificial intelligence could be developed from the MRAS.All the model based schemes were sensitive to variations or incorrect settings of parameters.
The MRAS and ELO were mainly used for simultaneous state estimation in order to prevent a mismatch between the actual and estimated values of the parameters under all speed ranges.Several studies focused on the performance analysis and parameter estimation [8][9][10] for the drive at low and zero speed regions [11][12][13].As stated before, variable structure or sliding mode observers (SMO) based on MRAS have been implemented for wide speed bandwidth estimation and faster parameter convergence by constraining the states of the system to the sliding hyperplane [14][15][16][17][18] implements a Luenberger-SMO that estimates the critical parameters online.It is demonstrated by means of hardware in the loop (HIL) simulation setup with an field programmable gate array (FPGA) based controller and an induction motor, in order to verify the robustness of the algorithm.Reference [19] presents a Sliding Mode-MRAS observer based on a super twisting algorithm (STA), where the variations in critical parameters are intentionally considered.In the standard configuration of MRAS, the reference model is replaced by a stator current observer, which is designed based on STA.This, in turn, is insensitive to rotor resistance variations and disturbances when the states converge on the sliding hyperplane.The chattering phenomenon is eliminated and near zero speed operation is realized by means of a parallel identification of stator resistance.In [20], the concept of adaptive Luenberger flux observation is applied for the state estimation of a sensorless symmetrical six phase induction machine subjected to unbalanced operation.In addition to it, the efficacy and performance of the observer is tested by incorporating mechanical and electrical disturbances during the normal operation of the machine.Variation of the inertia up to the maximum value and the loss of one or more stator phases are considered for all the test cases of unbalanced conditions.There are also a certain class of load torque rejection observers that have been implemented.These disturbance observers, either comprised of a mechanical model of the motor or having error components that are dependent on the rotor speed, or gain coefficients dependent on the stator frequency [21][22][23][24].In [24], the decoupling of current and subsequent control of the current components is applied to induction motor by employing a sliding mode controller and a disturbance observer.The coupled terms are modeled as disturbance, which, after observation, are utilized in the control law.In addition, the rotor speed is estimated based on the magnetizing current and the lyapunov stability criterion is used to ensure closed loop stability.Several of the above categories of observers have been implemented in many experimental platforms and also been verified by means of HIL testing.
The purpose of this paper is to demonstrate the improvement in the rejection of the external load by the proposed observer.The sliding hyperplane is altered and the disturbance estimated from the mechanical model is integrated into the sliding hyperplane along with the real and estimated stator currents [17].In addition, to add to the nonlinearity of the observer, a Gaussian noise (measurement disturbance) is incorporated at the motor terminals, where the terminal voltages and currents are measured.The observer, along with the drive system, is first built using Matlab/Simulink blocksets and then validated in a comparatively new real-time simulation platform, RT-Lab, developed by Opal-RT (2011, Mathworks, Natick, MA, USA) and the real-time results add more credibility as compared to any other offline simulation platform.

General Configuration of Model Reference Adaptive Systems and System Modeling
Adaptive control is mainly used for parameter adaptation.The essence of an adaptive control mechanism is to adapt to the controlled system with parameters that need to be estimated.The concept of parameter adaptive MRAS along with the parallel disturbance torque estimation mechanism is illustrated in Figure 3.There is a reference motor model and the adaptive model as a function of the parameter to be estimated.The adaptive mechanism is used to ensure that the state of the observer (process) converges to the state of the motor (plant).Therefore, we have an optimization criterion X and the error to be constrained: where X ref and X adap are outputs of respective models.The adaptation mechanism makes use of the classical Proportional-Integral theory to process the speed tuning signal.A Lyapunov function candidate is used for the speed derivation mechanism.
Energies 2017, 10, 1077 4 of 23 where Xref and Xadap are outputs of respective models.The adaptation mechanism makes use of the classical Proportional-Integral theory to process the speed tuning signal.A Lyapunov function candidate is used for the speed derivation mechanism.

Structure of Sliding Mode Luenberger State Observer
The reduced order sliding mode luenberger observer (SMLO) with the modified switching surface is shown in Figure 4, where "A" is the parameter matrix, "^" is used for estimated parameters, "X" is the state variables comprised of the d and q-axes stator currents and rotor fluxes, "ksw" is the reduced order observer switching gain matrix, chosen in such a way that the eigenvalues of the observer and the machine are maintained proportional to ensure stability under normal operating conditions."J" is the moment of inertia, "p" is the differential operator, "BV" is the viscous friction coefficient, " T * " and " T " is the reference model electromagnetic torque and the estimated disturbance torque, "k" is an arbitrary positive gain [17].The purpose of a sliding mode or variable structure strategy is to modify the dynamics of a non linear system state by means of a high frequency switching surface or a sliding hyperplane.The sliding hyperplane is selected in such a way that the Lyapunov function candidate "V" utilized for obtaining the convergence mechanism, and its derivative satisfies the Lyapunov stability criterion [17,25]."V" is a scalar function of the sliding hyperplane "S".Therefore,

V (S) = S(x)S (x).
( The control law is: where u(t), ueq(t) and usw(t) represent the control, equivalent control and the switching vector.For stability, the switching vector is obtained [17,26]: where sign(S) = −1 for S < 0 0 for S = 0 +1 for S > 0 .η is the switching control gain chosen such that (3) is negative definite, implying S(x)S (x) < 0, thereby constraining the effect of the external disturbance.However, the high frequency switching plane increases non linearity of the observer, leading to

Structure of Sliding Mode Luenberger State Observer
The reduced order sliding mode luenberger observer (SMLO) with the modified switching surface is shown in Figure 4, where "A" is the parameter matrix, "ˆ" is used for estimated parameters, "X" is the state variables comprised of the d and q-axes stator currents and rotor fluxes, "ksw" is the reduced order observer switching gain matrix, chosen in such a way that the eigenvalues of the observer and the machine are maintained proportional to ensure stability under normal operating conditions."J" is the moment of inertia, "p" is the differential operator, "BV" is the viscous friction coefficient, "T * e " and " Tdis " is the reference model electromagnetic torque and the estimated disturbance torque, "k" is an arbitrary positive gain [17].The purpose of a sliding mode or variable structure strategy is to modify the dynamics of a non linear system state by means of a high frequency switching surface or a sliding hyperplane.The sliding hyperplane is selected in such a way that the Lyapunov function candidate "V" utilized for obtaining the convergence mechanism, and its derivative satisfies the Lyapunov stability criterion [17,25]."V" is a scalar function of the sliding hyperplane "S".Therefore, .

S(x).
( The control law is: where u(t), u eq (t) and u sw (t) represent the control, equivalent control and the switching vector.For stability, the switching vector is obtained [17,26]: Energies 2017, 10, 1077 where sign(S) . η is the switching control gain chosen such that (3) is negative definite, implying S(x) . S(x) < 0, thereby constraining the effect of the external disturbance.However, the high frequency switching plane increases non linearity of the observer, leading to chattering.Therefore, to eliminate the effect of this unwanted phenomenon, a saturation function having boundary layer of width (Φ) is used by replacing sign (S) with sat (S/Φ) and is given by [17]: Based on the theory of MRAS, the following equations depict the structure of the proposed observer scheme with the conventional and modified sliding hyperplane.The reference and the adaptive model are represented in state space form as they aid in the formulation of control and estimation problems [17,27]. where: Energies 2017, 10, 1077

Estimation of Disturbance Torque from the Mechanical Model
By exploiting the machine model, the disturbance torque is estimated by utilizing the reference model electromagnetic torque and the estimated speed, respectively: 2.1.3.SMLO 1-Observer with Conventional Disturbance Rejection Mechanism (Adaptive Model) where the sliding hyperplane, s = îs − i s and d = k Tdis and where îs , i s = estimated and measured value of stator current: The switching gain "ksw" is designed by the following lower order matrix given by The switching gain matrix is designed appropriately to make Label (4) stable by means of pole placement.The eigenvalues are designed in such a way that, for the observer, they are comparatively more negative to that of the motor so that they ensure faster convergence of the desired performance to the process.Therefore, where "m" and "k 2 " are chosen in such a way that the eigenvalues of the observer are shifted more negative as compared to the eigenvalues of the motor.They also directly affect the dynamics and damping of the observer."k 1 " is dependent on the motor parameters.

SMLO 2-Observer with Modified Disturbance Rejection Mechanism (Adaptive Model)
The state dynamic equation is altered by changing the sliding hyperplane, i.e., by including the estimated disturbance torque [17]: Energies 2017, 10, 1077 The Lyapunov function candidate used for speed derivation mechanism and to ensure stability is given by: where λ is a positive constant.
We have: "c" being an arbitrary positive constant.The difference between SMLO 2 and SMLO 1 is the way in which the estimated disturbance is added and constrained in the sliding hyperplane along with the stator current error.The complexity of the observer increases due to the presence of the speed adaptation loop, the disturbance estimation and adaptation loop and the Luenberger observer gain loop, however, by tuning the feedback and switching gains, the dynamic performance and the stability of both the observers can be improved.

Stability Analysis of Both the Observers by Means of Pole Placement
For the conventional disturbance observer SMLO 1: The characteristic equation is: On solving: The observer poles are: For the modified disturbance observer SMLO 2: Energies 2017, 10, 1077 The characteristic equation is: On solving: The observer poles are:

Structure of Current Regulated Vector Controller
Current regulation or tolerance band current control has a fast torque response and is independent of load parameters.The speed error is processed by a PI controller whose output is the reference torque: T where e c is the speed error, kp and ki are the proportional and integral gains for tuning the speed error, and Ts is the sampling time.For operation in the motoring and flux weakening region, the rotor flux is constant for the former and as a function of the speed for the latter: The orthogonal direct and quadrature axes stator current components are [1]: i qs As the slip speed is used for imposing the field orientation, the field angle is determined from the slip speed, therefore: The three-phase reference currents are obtained from the decoupled reference components of current by means of inverse transformation given as follows: i * as = i ds sin θ + i qs cos θ, Energies 2017, 10, 1077 9 of 23 The three-phase reference current components are compared with the actual sensed three-phase currents by means of hysteresis regulation and the gating pulses for the voltage source inverter (VSI) are generated.The hysteresis band is selected keeping the current and subsequent torque pulsation in mind.The entire sensorless drive scheme is illustrated in Figure 5 [17].

The Concept of Real-Time Simulation
Real-time simulation and test platform is one in which the computer model's performance corresponds to the performance of the actual physical system [28][29][30][31][32][33][34][35][36].It would take the same amount of time like any real world application.Unlike many offline simulation platforms, where a variable step solver is used, in real time, a fixed step discrete solver is used.For a given computer model, in a real-time simulation, the processing of inputs, model calculations and the processing of outputs should be less than the fixed step.If it exceeds the fixed step, a phenomenon known as over run would occur.Therefore, it is imperative that the real-time simulator should produce the model calculations and output within the same time interval corresponding to its actual physical counterpart.The applications ranges from mechatronics, power electronic and power system based concepts to gaming and process control.
There are various real-time simulators available such as xPC Target (Mathworks, Natwick, United States), for power electronic system simulation there is eFPGAsim and eDRIVEsim (Opal-RT, Montreal, Canada) and for power system simulation, we have HYPERSIM (Opal-RT, Montreal, Canada) and RTDS (RTDS Technologies Inc., Winnipeg, MB, Canada).
RT-Lab is a distributed real-time platform with features ranging from virtual, control and plant prototyping, model based design, etc.It is flexible and has a fast execution time and can also be utilized for real-time processor-in-loop (PIL) and hardware in the loop (HIL) applications.The package is compatible with various offline platforms such as Matlab/Simulink, Labview, etc.The mathematical and dynamic model of the drive system is built in Simulink environment using sim-power systems toolbox.This acts as the front end interface after which the model is integrated with RT-Lab blocksets.RT-Lab generates the code to be simulated in a single or multiple targets.Here, the real-time simulation target used is OP4500 developed by Opal-RT.It is a multi core target, where the plant and controller can be placed in different cores.
It comprises of analog and digital input/output (I/O) channels with signal conditioning and is also integrated with powerful XILINX Kintex 7 FPGA, which has a very high processing power.The sensorless drive system is modeled and built offline using sim power systems toolbox in Simulink in the workstation.The offline simulink model uses a variable step solver.The RT-Lab integrated real-time platform uses a discretised fixed step time solver with a step size of 50 µs.The workstation is connected to the OP4500 real-time simulator through transmission control protocol/internet protocol (TCP/IP) protocol.The target executes the model and the results are viewed and recorded in the workstation, which is the front end interface.The model is executed and analyzed dynamically for different test cases as presented below.

Real-Time Simulation Results: Analysis and Discussion
The motor parameters and ratings used for the real-time simulation are given in Appendix A. In order to emphasize on the improvement in the performance of SMLO 2 over SMLO 1, some results are magnified to present a clearer picture.Parameter estimation of an observer at flux weakening regions is significant, as it indicates its robustness for a wider speed bandwidth as also its tracking performance at a constant power region.

Performance at Flux Weakening
Here, the observers are tested at a low flux weakening region for a given speed command of 165 rad/s.However, both reach the reference speed at almost identical time, and the estimated speed oscillations are comparatively very high for SMLO 1 as shown in Figure 6a.In the zoomed version shown in Figure 6b, the oscillation is as high as 70 rad/s for the speed command of 165 rad/s, which is almost 42%.The profiles of the estimated disturbance torque in Figure 7 and the electromagnetic torque in Figure 8 of SMLO1 are almost the same, since the viscous friction coefficient and the inertia constant are of a low value.The estimated rotor flux of SMLO 1 in Figure 9 has more oscillations and the magnitude is increasing with time.As compared to SMLO 1, speed performance of SMLO2 has relatively less oscillations shown in Figure 10a.In Figure 10b, although there is an initial overshoot and undershoot, the oscillation is initially around 20 rad/s, which is around 12%, and gradually dies out after 6 s.The profiles of the estimated disturbance torque in Figure 7 and the electromagnetic torque in Figure 8 of SMLO1 are almost the same, since the viscous friction coefficient and the inertia constant are of a low value.The estimated rotor flux of SMLO 1 in Figure 9 has more oscillations and the magnitude is increasing with time.As compared to SMLO 1, speed performance of SMLO2 has relatively less oscillations shown in Figure 10a.In Figure 10b, although there is an initial overshoot and undershoot, the oscillation is initially around 20 rad/s, which is around 12%, and gradually dies out after 6 s.(a) Estimated disturbance torque of SMLO2 shown in Figure 11 has relatively lesser ripples.Again, the electromagnetic torque profile of SMLO2 follows the estimated disturbance torque profile as shown in Figure 12.SMLO2 estimated rotor flux shown in Figure 13 has lesser oscillations.This shows that the SMLO 2 has better reception to flux weakening and operates well in this region.Estimated disturbance torque of SMLO2 shown in Figure 11 has relatively lesser ripples.Again, the electromagnetic torque profile of SMLO2 follows the estimated disturbance torque profile as shown in Figure 12.SMLO2 estimated rotor flux shown in Figure 13 has lesser oscillations.This shows that the SMLO 2 has better reception to flux weakening and operates well in this region.

Performance at Step Speed Command
The difference is seen more distinctly at step speed command (initially 50 rad/s, after 2 s, stepped upto 150 rad/s, after 7 s, stepped down to 100 rad/s), which covers a wide speed bandwidth.SMLO 1 initially, tracks well for both 50 rad/s and 150 rad/s, but, during deceleration from 150 rad/s to 100 rad/s, there is a very high spike in the estimated speed (of almost 100 rad/s) shown in Figure 14a,

Performance at Step Speed Command
The difference is seen more distinctly at step speed command (initially 50 rad/s, after 2 s, stepped upto 150 rad/s, after 7 s, stepped down to 100 rad/s), which covers a wide speed bandwidth.SMLO 1 initially, tracks well for both 50 rad/s and 150 rad/s, but, during deceleration from 150 rad/s to 100 rad/s, there is a very high spike in the estimated speed (of almost 100 rad/s) shown in Figure 14a, which could prove detrimental to the drive system.This is mainly due to the sudden change in the flux level of the motor and SMLO 1, which directly affects its speed convergence.Even after settling down at 100 rad/s, after about 10 s, oscillations persist ranging between 98.5 and 101 rad/s, shown in Figure 14b.SMLO 2 in comparison tracks more smoothly and accurately, even during deceleration as shown in Figure 15a.The oscillations in the estimated speed are greatly reduced as shown in Figure 15b, ranging almost between 99.9 and 100.1 rad/s, which proves that it is near accurate and superior tracking as compared to SMLO 1.
Energies 2017, 10, 1077 13 of 23 which could prove detrimental to the drive system.This is mainly due to the sudden change in the flux level of the motor and SMLO 1, which directly affects its speed convergence.Even after settling down at 100 rad/s, after about 10 s, oscillations persist ranging between 98.5 and 101 rad/s, shown in Figure 14b.SMLO 2 in comparison tracks more smoothly and accurately, even during deceleration as shown in Figure 15a.The oscillations in the estimated speed are greatly reduced as shown in Figure 15b, ranging almost between 99.9 and 100.1 rad/s, which proves that it is near accurate and superior tracking as compared to SMLO 1.Even the estimated disturbance torque profile of SMLO 1 shown in Figure 16a is comparatively less smoother with more pulsations as compared to SMLO 2 shown in Figure 16b.The estimated rotor flux performance for SMLO 1 in Figure 17a and SMLO 2 in Figure 17b can be observed.Here again, the latter gives smoother flux performance in spite of variations in the commanded speed at different time intervals, resulting in better torque holding capability.Even the estimated disturbance torque profile of SMLO 1 shown in Figure 16a is comparatively less smoother with more pulsations as compared to SMLO 2 shown in Figure 16b.The estimated rotor flux performance for SMLO 1 in Figure 17a and SMLO 2 in Figure 17b

Performance at Low Speeds
At low speeds (for a speed command of 30 rad/s), SMLO 1 does not track becomes unstable and goes out of bounds.Therefore, the speed bandwidth of SMLO 1 is restricted to a range of 50-150 rad/s.However, the tracking performance of SMLO 2 is shown in Figure 18a, where, after an initial high overshoot for a very small amount of time, it tracks the command accurately, which is more distinct in the zoomed version in Figure 18b.

Performance at Low Speeds
At low speeds (for a speed command of 30 rad/s), SMLO 1 does not track becomes unstable and goes out of bounds.Therefore, the speed bandwidth of SMLO 1 is restricted to a range of 50-150 rad/s.However, the tracking performance of SMLO 2 is shown in Figure 18a, where, after an initial high overshoot for a very small amount of time, it tracks the command accurately, which is more distinct in the zoomed version in Figure 18b.The initial high disturbance torque pulsation shown in Figure 19 is responsible for the high overshoot in estimated speed.The initial high disturbance torque pulsation shown in Figure 19 is responsible for the high overshoot in estimated speed.

Effect of Parameter Detuning on the Dynamic Performance
The detuning or incorrect setting of parameters plays a significant role in the ability of the adaptive mechanism to converge the states of the observer and motor.The stator resistance and rotor time constant play a critical role in the motor dynamics.Therefore, the speed convergence mechanisms of the observer are tested for incorrect settings of the said parameters.The speed tuning (b)

Effect of Parameter Detuning on the Dynamic Performance
The detuning or incorrect setting of parameters plays a significant role in the ability of the adaptive mechanism to converge the states of the observer and motor.The stator resistance and rotor time constant play a critical role in the motor dynamics.Therefore, the speed convergence mechanisms of the observer are tested for incorrect settings of the said parameters.The speed tuning signal for the adaptive mechanism is derived from the difference between the products of the estimated d-axis flux linkages and the q-axis stator current error and q-axis flux linkages and the d-axis stator current error.For 50% incorrect setting in both, the convergence of SMLO 1 is shown in Figure 20a.The speed error gradually increases at the end, thereby affecting its ability to withstand parametric uncertainties, whereas, for SMLO 2, the speed error is approximately zero and consistent with time, as shown in Figure 20b.signal for the adaptive mechanism is derived from the difference between the products of the estimated d-axis flux linkages and the q-axis stator current error and q-axis flux linkages and the daxis stator current error.For 50% incorrect setting in both, the convergence of SMLO 1 is shown in Figure 20a.The speed error gradually increases at the end, thereby affecting its ability to withstand parametric uncertainties, whereas, for SMLO 2, the speed error is approximately zero and consistent with time, as shown in Figure 20b.Parametric uncertainties can also be treated as model disturbances and this only reflects the ability of SMLO 2 to reject the effect of the disturbances.Again, for nominal setting of Rs and Tr, although the inconsistencies in the speed tuning signal of SMLO 1 has reduced, it is still pertinent, with speed error reaching almost 3 rad/s, as shown in Figure 21a.The speed tuning signal or speed error of SMLO 2 is almost confined to zero, as shown in Figure 21b, indicating faster convergence of the motor and the observer states.Parametric uncertainties can also be treated as model disturbances and this only reflects the ability of SMLO 2 to reject the effect of the disturbances.Again, for nominal setting of Rs and Tr, although the inconsistencies in the speed tuning signal of SMLO 1 has reduced, it is still pertinent, with speed error reaching almost 3 rad/s, as shown in Figure 21a.The speed tuning signal or speed error of SMLO 2 is almost confined to zero, as shown in Figure 21b, indicating faster convergence of the motor and the observer states.Now, for 150% incorrect setting in both the parameters, SMLO 1 exhibits a comparatively better convergence than previous cases, as shown in Figure 22a, but, here again, it is observed that SMLO 2 offers a greater and near accurate convergence of states, as shown in Figure 22b.

Switching Surface and Convergence of the Stator Current Error
The convergence of the stator current error and the sliding surface is also observed for both the observers.In both the cases, the profile of the sliding surface is identical to that of the stator current error, as both are dependent on each other.The profile of the sliding surface, direct and quadrature axes stator currents, stator current error of SMLO1 are shown in Figure 23a-d.However, as compared to SMLO 1, both the stator current error and the sliding surface of SMLO 2 are slightly displaced in the negative range.This can be primarily due to change in the configuration of the sliding surface, as, along with the stator current error, it also has to constrain the effect of the estimated disturbance Now, for 150% incorrect setting in both the parameters, SMLO 1 exhibits a comparatively better convergence than previous cases, as shown in Figure 22a, but, here again, it is observed that SMLO 2 offers a greater and near accurate convergence of states, as shown in Figure 22b.Now, for 150% incorrect setting in both the parameters, SMLO 1 exhibits a comparatively better convergence than previous cases, as shown in Figure 22a, but, here again, it is observed that SMLO 2 offers a greater and near accurate convergence of states, as shown in Figure 22b.

Switching Surface and Convergence of the Stator Current Error
The convergence of the stator current error and the sliding surface is also observed for both the observers.In both the cases, the profile of the sliding surface is identical to that of the stator current error, as both are dependent on each other.The profile of the sliding surface, direct and quadrature

Switching Surface and Convergence of the Stator Current Error
The convergence of the stator current error and the sliding surface is also observed for both the observers.In both the cases, the profile of the sliding surface is identical to that of the stator current error, as both are dependent on each other.The profile of the sliding surface, direct and quadrature axes stator currents, stator current error of SMLO1 are shown in Figure 23a-d.However, as compared to SMLO 1, both the stator current error and the sliding surface of SMLO 2 are slightly displaced in the negative range.This can be primarily due to change in the configuration of the sliding surface, as, along with the stator current error, it also has to constrain the effect of the estimated disturbance torque.The direct and quadrature axes are also obtained.The performance of SMLO2 is shown in Figure 24a-d.Although both are similar, the presence of pulsations in the stator current components, both during steady state and transient conditions, give rise to subsequent torque and flux pulsations in the observers.In addition, due to high power rating of the motor, the stator current dynamics play a major role in the torque performance.However, it is seen that the SMLO 2 comparatively displays better dynamic and steady state performance due to its ability to contain the stator current dynamics and ensure that it does not affect the tracking.For the entire study, the load torque was maintained constant at 100 Nm.For the last two test cases, along with the constant load torque, the speed command was also maintained constant at 100 rad/s, respectively.Although both are similar, the presence of pulsations in the stator current components, both during steady state and transient conditions, give rise to subsequent torque and flux pulsations in the observers.In addition, due to high power rating of the motor, the stator current dynamics play a major role in the torque performance.However, it is seen that the SMLO 2 comparatively displays better dynamic and steady state performance due to its ability to contain the stator current dynamics and ensure that it does not affect the tracking.For the entire study, the load torque was maintained constant at 100 Nm.For the last two test cases, along with the constant load torque, the speed command was also maintained constant at 100 rad/s, respectively.

Pole Placement Plot of the Modified nd Conventional Disturbance Observers
The pole plot shown in Figure 25 shows that the poles of SMLO 2 are shifted to left of SMLO 1, which indicates comparatively better stability performance of the same in low and flux weakening regions.However, the performance at medium speed regions remains more or less the same.

Pole Placement Plot of the Modified nd Conventional Disturbance Observers
The pole plot shown in Figure 25 shows that the poles of SMLO 2 are shifted to left of SMLO 1, which indicates comparatively better stability performance of the same in low and flux weakening regions.However, the performance at medium speed regions remains more or less the same.Since hysteresis band current regulation is used, the exact switching frequency cannot be predicted; however, the maximum switching frequency which is realizable by the OP45OO target is (1/(2*time step)), which is 10 kHz.As the model has been successfully executed by the target, it can be safely concluded that the equivalent switching frequency is within 10 kHz.The entire testing and analysis were performed in the motoring mode at low, medium speeds and low flux weakening regions.Although these real-time simulation results can also be considered to be equivalent to the experimental results while testing in model based design paradigm (provided all the model dynamics including uncertainties, plant disturbance etc. have been mathematically modeled), there are some problems which are encountered.While moving from simulations to real-time implementation of the model, in automotive and power applications, (EMI/EMC issues, over-voltages, overcurrent, temperature issues) arise which have to be managed with proper safe circuitry and diagnostic circuitry [30][31][32].Table 1 summarizes the observations from the above analysis for both the observers.Tracks well, initial undershoot and overshoot, which results for a very small interval of time.

Disturbance torque
Higher torque pulsations as a result of high stator current pulsation.
Comparatively lower torque pulsation resulting in better torque holding capability.Speed and Stator error convergence Slower convergence, higher speed and stator current error Faster convergence, resulting in smoother tracking

Conclusions
This paper presented an improved version of a sliding mode Luenberger observer with comparatively better tracking performance, robustness to the effect of external and model disturbances and a wider speed bandwidth than the conventional one.The drive system along with the proposed observer is executed in real-time using an RT-Lab package and an OP4500 real-time simulator.The real-time results validate the improvement in the disturbance rejection capability for Since hysteresis band current regulation is used, the exact switching frequency cannot be predicted; however, the maximum switching frequency which is realizable by the OP45OO target is (1/(2*time step)), which is 10 kHz.As the model has been successfully executed by the target, it can be safely concluded that the equivalent switching frequency is within 10 kHz.The entire testing and analysis were performed in the motoring mode at low, medium speeds and low flux weakening regions.Although these real-time simulation results can also be considered to be equivalent to the experimental results while testing in model based design paradigm (provided all the model dynamics including uncertainties, plant disturbance etc. have been mathematically modeled), there are some problems which are encountered.While moving from simulations to real-time implementation of the model, in automotive and power applications, (EMI/EMC issues, over-voltages, overcurrent, temperature issues) arise which have to be managed with proper safe circuitry and diagnostic circuitry [30][31][32].Table 1 summarizes the observations from the above analysis for both the observers.Step speed command Very high overshoot and undershoot observed at the instance of fast deceleration.
Smoother tracking during fast acceleration and deceleration.
Low speed operation Does not track, becomes unstable and speed convergence goes out of bounds.
Tracks well, initial undershoot and overshoot, which results for a very small interval of time.

Disturbance torque
Higher torque pulsations as a result of high stator current pulsation.
Comparatively lower torque pulsation resulting in better torque holding capability.

Speed and Stator error convergence
Slower convergence, higher speed and stator current error Faster convergence, resulting in smoother tracking

Conclusions
This paper presented an improved version of a sliding mode Luenberger observer with comparatively better tracking performance, robustness to the effect of external and model disturbances and a wider speed bandwidth than the conventional one.The drive system along with the proposed observer is executed in real-time using an RT-Lab package and an OP4500 real-time simulator.The real-time results validate the improvement in the disturbance rejection capability for the different test cases presented and also provide more credibility as compared to other offline simulated results.Some significant findings from the study are presented and summarized in a table to add more clarity.They present a realistic view of how the actual physical system would respond just like the virtual system present in the workstation.Furthermore, the plant or the controller can be made to interact in real-time PIL or HIL with the other components of the drive system in the workstation.

Figure 2 .
Figure 2. Machine model based state estimation schemes.

Figure 2 .
Figure 2. Machine model based state estimation schemes.

Figure 2 .
Figure 2. Machine model based state estimation schemes.

Figure 3 .
Figure 3. Basic configuration of parameter adaptive model reference adaptive system (MRAS) scheme with parallel disturbance torque estimation.

Figure 3 .
Figure 3. Basic configuration of parameter adaptive model reference adaptive system (MRAS) scheme with parallel disturbance torque estimation.

Figure 4 .
Figure 4. Proposed state observer with the modified switching hyperplane.

Figure 4 .
Figure 4. Proposed state observer with the modified switching hyperplane.

Figure 4 .
Figure 4. Proposed state observer with the modified switching hyperplane.

Figure 20 .Figure 21 .
Figure 20.Speed tuning signal for 50% incorrect setting of stator resistance (Rs) and rotor time constant (Tr) for (a) SMLO 1, and (b) SMLO 2.Parametric uncertainties can also be treated as model disturbances and this only reflects the ability of SMLO 2 to reject the effect of the disturbances.Again, for nominal setting of Rs and Tr, although the inconsistencies in the speed tuning signal of SMLO 1 has reduced, it is still pertinent, with speed error reaching almost 3 rad/s, as shown in Figure21a.The speed tuning signal or speed error of SMLO 2 is almost confined to zero, as shown in Figure21b, indicating faster convergence of the motor and the observer states.

Figure 21 .
Figure 21.Speed tuning signal for nominal setting of stator resistance (R s ) and rotor time constant (T r ) for (a) SMLO 1; and (b) SMLO 2.

Table 1 .
Salient features of both the observers.

Table 1 .
Salient features of both the observers.