I am working on a sensorless control scheme of PMSM based on Adaptive Luenberger (state) Obsever. It is relatively easy to set the observer gain to reach stable and successful observer tracking in simulation. When it comes to real-time implementation (I use a DSP hardware with program cycle time of 150 micro sec. which is more than sufficient for a high quality sensor-based control which is also easily achievable in my case).
I could only obtain an intermittent or unstable tracking in real time when I use the same gain I used for simulation (although off-line simulation is made very close to reflect real time dynamics by making current and speed controllers discrete ones at the same sampling time used in real time where speed control loop is executing once each 30 executions of current control loop)
I know that there are still many differences between off-line simulation and real time system (specially those attributed to noise and parameter uncertainty) that can result in different response but I wonder if somebody can help advising a systematic tuning approach like for example those procedures we usually use for tuning PID controllers.