Problem: programming a hysteresis for a sliding mode control, programming hysteresis for sliding mode control 
Problem: programming a hysteresis for a sliding mode control, programming hysteresis for sliding mode control 
saiph74 
Oct 17 2012, 08:28 AM
Post
#1

Newbie Group: Members Posts: 6 Joined: 9August 12 Member No.: 625,862 
Hello
i'm trying to program/simulate a sliding mode controller for an intercooler which has 3 identical coolers. It is possible to turn them on or off separately. For a simple sliding mode simulation i assumed that one can only turn all of them on or off. I simulated the model without the sliding mode for the two assumed states (turn all coolers on [u_max] or off [u_min]) and with a apparently working controller (see pngfile), but somehow i can't believe the results... Maybe i did something wrong in the hysteresis part that's why i'd like to know if uout (in my code) is really the predecessor "value" of u. if not i would like to know how to make it so! I would also be very happy if you can give me some advices for the more complex real situation with 3 separately accessible coolers. Thank you in advance for any hint or suggestion Jassir Solved/partially the model works so far but i'm still looking for an option to create/call for a predecessor for a continuous variable (assuming u is continuous but in real it is discrete and can accept 4 different values) or calculate the derivative der(T_l2) with the discrete value u in its equation Attached thumbnail(s) Attached File(s) LLKSlideM1.mo ( 3.57k ) Number of downloads: 451 
LoFi Version  Time is now: 22nd May 2019  08:44 AM 