Skip to content
SingleVariableController.md

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

dyad
# 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
dyad
# 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.

  • Examples

  • Experiments

  • Analyses

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.