I am designing state feedback sliding mode control of single phase inverter for reference tracking. The schematic is illustrated in the Figure attached. I have implemented the system in Matlab simulink . The simulation is working fine for fixed step size of 1e^6 seconds . But i need to implement the algorithm on hardware. For that purpose when i try to increase the sampling time , the output is completely damaged and the tracking error becomes very high. Please suggest some way out.

Similar questions and discussions