Main Content

Sliding Mode Controller

Hysteresis-based sliding mode control

  • Sliding Mode Controller block

Libraries:
Simscape / Electrical / Control / General Control

Description

The Sliding Mode Controller block implements hysteresis-based sliding mode control (SMC).

The sliding mode controller has this structure.

Implementation of the sliding mode controller in Simulink. There are two input ports, r and y, and one output port, u.

In this controller, lambda is the value of the Sliding factor parameter. To change the convergence speed of the error to zero, specify a value greater than 0 for the Sliding factor parameter.

Ports

Input

expand all

Plant system reference signal.

Data Types: single | double

Plant system output signal.

Data Types: single | double

Output

expand all

Control system output signal.

Data Types: single | double

Parameters

expand all

Since R2024b

Sliding factor that affects the convergence speed of the error to zero.

Total hysteresis bandwidth, distributed symmetrically about the set point.

Upper limit for the control output signal.

Lower limit for the control output signal.

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

expand all