Sliding Mode Controller
Hysteresis-based sliding mode control
Libraries:
Simscape /
Electrical /
Control /
General Control
Description
The Sliding Mode Controller block implements hysteresis-based sliding mode control (SMC).
Ports
Input
r — Plant reference
scalar
Plant system reference signal.
Data Types: single
| double
y — Plant output
scalar
Plant system output signal.
Data Types: single
| double
Output
u — Controller output
scalar
Control system output signal.
Data Types: single
| double
Parameters
Hysteresis band — Hysteresis bandwidth
0.2
(default)
Total hysteresis bandwidth, distributed symmetrically about the set point.
Control action upper limit — Control signal upper limit, umax
10
(default) | scalar greater than the value of the Control action lower
limit parameter
Upper limit for the control output signal.
Control action lower limit — Control signal lower limit, umin
-10
(default) | scalar
Lower limit for the control output signal.
Sample time (-1 for inherited) — Block sample time
-1
(default) | positive scalar
Time, in s, between consecutive block executions. During execution, the block produces outputs and, if appropriate, updates its internal state. For more information, see What Is Sample Time? and Specify Sample Time.
If this block is inside a triggered subsystem, inherit the
sample time by setting this parameter to -1
. If this block is in a
continuous variable-step model, specify the sample time explicitly using a positive
scalar.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version History
Introduced in R2018a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)