Mux Mux Icon

Examples.Mux

Usage

DiscreteComponents.Examples.Mux()

Connectors

  • u1 - This connector represents a real signal as an input to a component (RealInput)
  • u2 - 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)

Behavior

2-element Vector{Symbolics.Equation}:
 (y(t))[1] ~ u1(t)
 (y(t))[2] ~ u2(t)

Source

component Mux
  u1 = Dyad.RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 0, "y1": 200, "x2": 80, "y2": 280, "rot": 0}
      },
      "tags": []
    }
  }
  u2 = Dyad.RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 0, "y1": 720, "x2": 80, "y2": 800, "rot": 0}
      },
      "tags": []
    }
  }
  y = [Dyad.RealOutput() for i in 1:2] {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 460, "x2": 1080, "y2": 540, "rot": 0}
      },
      "tags": []
    }
  }
relations
  y = [u1, u2]
end
Flattened Source
component Mux
  u1 = Dyad.RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 0, "y1": 200, "x2": 80, "y2": 280, "rot": 0}
      },
      "tags": []
    }
  }
  u2 = Dyad.RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 0, "y1": 720, "x2": 80, "y2": 800, "rot": 0}
      },
      "tags": []
    }
  }
  y = [Dyad.RealOutput() for i in 1:2] {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 460, "x2": 1080, "y2": 540, "rot": 0}
      },
      "tags": []
    }
  }
relations
  y = [u1, u2]
metadata {}
end


Test Cases

No test cases defined.

  • Examples
  • Experiments
  • Analyses