Skip to content
LIBRARY
Examples.Mux.md

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 ​

Dict{MIME{Symbol("text/plain")}, String} with 1 entry: MIME type text/plain => "Error displaying result"

Source ​

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