The observer-based sliding mode controller seems to be working in MATLAB simulink, but since I couldn't implement it real-time using MATLAB real-time workshop, I've written a piece of code in C trying to implement it through dSpace card. However, I am not able to stabilise the system with the same controller which works fine in Simulink. Does the controller have to be designed specifically in discrete-time or there is another problem?

Rgds

Similar questions and discussions