SingleVariableController
Interface for single-variable continuous controllers with setpoint input, measurement input, and control output.
Defines the basic interface for feedback controllers with one setpoint input, one measurement input, and one control output. This partial component serves as a template for implementing specific control algorithms like PID controllers or state-feedback controllers.
| u_s
| │
| v
| ┌─────┐
| │ │
| │ │ ──► y
| │ │
| └─────┘
| ^
| │
| u_m
Partial component that can be extended to create various controller implementations that operate on the error between setpoint and measurement.
Usage
SingleVariableController()
Connectors
u_s
- This connector represents a real signal as an input to a component (RealInput
)u_m
- This connector represents a real signal as an input to a component (RealInput
)y
- This connector represents a real signal as an output from a component (RealOutput
)
Source
# Interface for single-variable continuous controllers with setpoint input, measurement input, and control output.
#
# Defines the basic interface for feedback controllers with one setpoint input, one measurement input, and one
# control output. This partial component serves as a template for implementing specific control algorithms
# like PID controllers or state-feedback controllers.
#
# ```
# | u_s
# | │
# | v
# | ┌─────┐
# | │ │
# | │ │ ──► y
# | │ │
# | └─────┘
# | ^
# | │
# | u_m
# ```
#
# Partial component that can be extended to create various controller implementations that operate on the error between setpoint and measurement.
partial component SingleVariableController
# Connector of setpoint input signal
u_s = RealInput() [{"Dyad": {"placement": {"icon": {"x1": -50, "y1": 300, "x2": 50, "y2": 400}}}}]
# Connector of measurement input signal
u_m = RealInput() [{
"Dyad": {
"placement": {"icon": {"x1": 600, "y1": 950, "x2": 700, "y2": 1050, "rot": -90}}
}
}]
# Connector of actuator output signal
y = RealOutput() [{
"Dyad": {
"placement": {"icon": {"iconName": "output", "x1": 1300, "y1": 300, "x2": 1400, "y2": 400}}
}
}]
end
Flattened Source
# Interface for single-variable continuous controllers with setpoint input, measurement input, and control output.
#
# Defines the basic interface for feedback controllers with one setpoint input, one measurement input, and one
# control output. This partial component serves as a template for implementing specific control algorithms
# like PID controllers or state-feedback controllers.
#
# ```
# | u_s
# | │
# | v
# | ┌─────┐
# | │ │
# | │ │ ──► y
# | │ │
# | └─────┘
# | ^
# | │
# | u_m
# ```
#
# Partial component that can be extended to create various controller implementations that operate on the error between setpoint and measurement.
partial component SingleVariableController
# Connector of setpoint input signal
u_s = RealInput() [{"Dyad": {"placement": {"icon": {"x1": -50, "y1": 300, "x2": 50, "y2": 400}}}}]
# Connector of measurement input signal
u_m = RealInput() [{
"Dyad": {
"placement": {"icon": {"x1": 600, "y1": 950, "x2": 700, "y2": 1050, "rot": -90}}
}
}]
# Connector of actuator output signal
y = RealOutput() [{
"Dyad": {
"placement": {"icon": {"iconName": "output", "x1": 1300, "y1": 300, "x2": 1400, "y2": 400}}
}
}]
metadata {}
end
Test Cases
No test cases defined.
Related
Examples
Experiments
Analyses